summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2009-10-29 17:42:28 +0100
committerSebastien Helleu <flashcode@flashtux.org>2009-10-29 17:42:28 +0100
commit2fcbd7f846bd93195cb97893231d2f4e34725386 (patch)
tree10cbd8cc3357e45e64f9163fb43c66b2d2babfaf /src/plugins
parent999de8bfc15bdaded7d85dc7d6e4617e07d2220c (diff)
downloadweechat-2fcbd7f846bd93195cb97893231d2f4e34725386.zip
Fix bug with IRC CTCP messages when char 0x01 is in message
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/irc/irc-ctcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/irc/irc-ctcp.c b/src/plugins/irc/irc-ctcp.c
index 6ae341a4c..84268c5d5 100644
--- a/src/plugins/irc/irc-ctcp.c
+++ b/src/plugins/irc/irc-ctcp.c
@@ -809,7 +809,7 @@ irc_ctcp_recv (struct t_irc_server *server, const char *command,
while (arguments && arguments[0])
{
- pos_end = strchr (arguments + 1, '\01');
+ pos_end = strrchr (arguments + 1, '\01');
if (pos_end)
pos_end[0] = '\0';