summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-10-31 17:24:49 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-10-31 17:24:49 +0000
commitef4bb2619df7dfd8a8f2c42eda10ddc0b23021e7 (patch)
tree70060a0179f02224542c6c5af7337b9325a9331a /src
parenta7e4c7da00c38f9a554bc30517dd41590159c606 (diff)
downloadirssi-ef4bb2619df7dfd8a8f2c42eda10ddc0b23021e7.zip
Support for /MODE #chan +o nick1 +o nick2 style grouping.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2981 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r--src/irc/core/modes.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/irc/core/modes.c b/src/irc/core/modes.c
index acada2bc..9776368e 100644
--- a/src/irc/core/modes.c
+++ b/src/irc/core/modes.c
@@ -506,7 +506,15 @@ void channel_set_mode(IRC_SERVER_REC *server, const char *channel,
type = '+'; prevtype = '\0';
curmode = cmd_get_param(&modestr);
- for (; *curmode != '\0'; curmode++) {
+ for (;; curmode++) {
+ if (*curmode == '\0') {
+ /* support for +o nick +o nick2 */
+ curmode = cmd_get_param(&modestr);
+ if (*curmode == '\0')
+ break;
+ continue;
+ }
+
if (*curmode == '+' || *curmode == '-') {
type = *curmode;
continue;