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 'q':
case 'I':
if (!irc_line_includes(line, cur_arg + 3))
return ERR_PROTOCOL;
cur_arg++;
/* Sucky way to try to deal with all the different mode
* out there... */
if (irc_line_includes(line, cur_arg + 3))
cur_arg++;
break;
default:
break;