summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2007-05-25 16:49:25 +0000
committerSebastien Helleu <flashcode@flashtux.org>2007-05-25 16:49:25 +0000
commit34e220df56c4e25343941c9cc80550f3aea0c724 (patch)
tree8ae6ac4b84d98090d74d7fae8027b816323ef7cf
parent537e1781a61ed1a820e9921ceee49df2d715e14c (diff)
downloadweechat-34e220df56c4e25343941c9cc80550f3aea0c724.zip
Fixed bug with PART command parsing (":" not skipped, problem with some IRC servers)
-rw-r--r--src/irc/irc-recv.c3
-rw-r--r--weechat/src/irc/irc-recv.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/irc/irc-recv.c b/src/irc/irc-recv.c
index 2307c5b5b..011dbcbee 100644
--- a/src/irc/irc-recv.c
+++ b/src/irc/irc-recv.c
@@ -1094,6 +1094,9 @@ irc_recv_cmd_part (t_irc_server *server, char *host, char *nick, char *arguments
return -1;
}
+ if (arguments[0] == ':')
+ arguments++;
+
pos_args = strchr (arguments, ' ');
if (pos_args)
{
diff --git a/weechat/src/irc/irc-recv.c b/weechat/src/irc/irc-recv.c
index 2307c5b5b..011dbcbee 100644
--- a/weechat/src/irc/irc-recv.c
+++ b/weechat/src/irc/irc-recv.c
@@ -1094,6 +1094,9 @@ irc_recv_cmd_part (t_irc_server *server, char *host, char *nick, char *arguments
return -1;
}
+ if (arguments[0] == ':')
+ arguments++;
+
pos_args = strchr (arguments, ' ');
if (pos_args)
{