More lose MODE command handling

This commit is contained in:
Arnaud Cornet 2010-02-17 10:55:09 +00:00
parent 5d6b7fedaf
commit 5b26dac489
1 changed files with 4 additions and 3 deletions

View File

@ -1717,9 +1717,10 @@ static int irc_mode(struct link_server *server, struct line *line)
case 'e': case 'e':
case 'q': case 'q':
case 'I': case 'I':
if (!irc_line_includes(line, cur_arg + 3)) /* Sucky way to try to deal with all the different mode
return ERR_PROTOCOL; * out there... */
cur_arg++; if (irc_line_includes(line, cur_arg + 3))
cur_arg++;
break; break;
default: default:
break; break;