changeset 26902:839c5481b32a

This allows incoming channel messages with op/voice/etc. mode characters. This seems to be a nonstandard but harmless extension employed by some servers. Thanks to Marcos Garc«ża Ochoa. Fixes #7415. committer: Ethan Blanton <elb@pidgin.im>
author Marcos García Ochoa <magao@bigfoot.com>
date Mon, 04 May 2009 15:47:54 +0000
parents 73eeb91911f3
children 1a1c12c122c9 cc45ac2782cc
files libpurple/protocols/irc/msgs.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/irc/msgs.c	Mon May 04 03:14:12 2009 +0000
+++ b/libpurple/protocols/irc/msgs.c	Mon May 04 15:47:54 2009 +0000
@@ -1193,7 +1193,7 @@
 	if (!purple_utf8_strcasecmp(to, purple_connection_get_display_name(gc))) {
 		serv_got_im(gc, nick, msg, 0, time(NULL));
 	} else {
-		convo = purple_find_conversation_with_account(PURPLE_CONV_TYPE_CHAT, to, irc->account);
+		convo = purple_find_conversation_with_account(PURPLE_CONV_TYPE_CHAT, irc_nick_skip_mode(irc, to), irc->account);
 		if (convo)
 			serv_got_chat_in(gc, purple_conv_chat_get_id(PURPLE_CONV_CHAT(convo)), nick, 0, msg, time(NULL));
 		else