changeset 15251:ccad8138a4b2

[gaim-migrate @ 18041] The IRC room namelist was not being parsed properly on ircds which do not append a space following the last nick on a 353 line which is not final. The RFC does not seem to require such a space, and apparently some servers do not send it. Thanks to jphendrix for pointing this out. committer: Tailor Script <tailor@pidgin.im>
author Ethan Blanton <elb@pidgin.im>
date Fri, 22 Dec 2006 00:47:43 +0000
parents 85aae248c589
children 7dd8192b1a5c
files libgaim/protocols/irc/msgs.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libgaim/protocols/irc/msgs.c	Thu Dec 21 23:57:27 2006 +0000
+++ b/libgaim/protocols/irc/msgs.c	Fri Dec 22 00:47:43 2006 +0000
@@ -434,6 +434,8 @@
 		if (!irc->names)
 			irc->names = g_string_new("");
 
+		if (irc->names->len && irc->names->str[irc->names->len - 1] != ' ')
+			irc->names = g_string_append_c(irc->names, ' ');
 		irc->names = g_string_append(irc->names, args[3]);
 	}
 }