1
0
mirror of https://github.com/irssi/irssi.git synced 2024-10-27 05:20:20 -04:00

support for +O mode

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1465 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-05-09 14:37:48 +00:00 committed by cras
parent 4c8ad5a4c5
commit 88bfb3bf1e
2 changed files with 3 additions and 2 deletions

View File

@ -250,6 +250,7 @@ void parse_channel_modes(IRC_CHANNEL_REC *channel, const char *setby,
break;
case 'o':
case 'O': /* channel owner in !channels */
if (g_strcasecmp(channel->server->nick, arg) == 0)
channel->chanop = type == '+';
nick_mode_change(channel, arg, '@', type);

View File

@ -6,8 +6,8 @@
/* modes that have argument always */
#define HAS_MODE_ARG_ALWAYS(mode) \
((mode) == 'b' || (mode) == 'e' || (mode) == 'I' || \
(mode) == 'o' || (mode) == 'h' || (mode) == 'v' || (mode) == 'k')
((mode) == 'b' || (mode) == 'e' || (mode) == 'I' || (mode) == 'k' || \
(mode) == 'o' || (mode) == 'h' || (mode) == 'v' || (mode) == 'O')
/* modes that have argument when being set (+) */
#define HAS_MODE_ARG_SET(mode) \