Channel mode handling changed - there's no more mode_xxx fields in

channel structure, but instead just one mode string field. Also
handling half-ops (+h) should work right.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@617 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-08-20 07:17:13 +00:00 committed by cras
commit 67cc9af1bd
15 changed files with 351 additions and 232 deletions

View file

@ -101,10 +101,7 @@ static char *expando_chanmode(void *server, void *item, int *free_ret)
CHANNEL_REC *channel;
channel = irc_item_channel(item);
if (channel == NULL) return NULL;
*free_ret = TRUE;
return channel_get_mode(channel);
return channel == NULL ? NULL : channel->mode;
}
/* current nickname */