From 5b26dac4898f76ba0396fbbc87cf528ee8d99d8d Mon Sep 17 00:00:00 2001 From: Arnaud Cornet Date: Wed, 17 Feb 2010 10:55:09 +0000 Subject: [PATCH] More lose MODE command handling --- src/irc.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/irc.c b/src/irc.c index bf8ebce..c44987b 100644 --- a/src/irc.c +++ b/src/irc.c @@ -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;