From 2fcbd7f846bd93195cb97893231d2f4e34725386 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Thu, 29 Oct 2009 17:42:28 +0100 Subject: Fix bug with IRC CTCP messages when char 0x01 is in message --- src/plugins/irc/irc-ctcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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'; -- cgit v1.2.3