mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
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
This commit is contained in:
parent
a7e4c7da00
commit
ef4bb2619d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user