changeset 22647:b398fe0a450e

Pass something useful as the 'who' parameter to purple_conv_im_write for incoming messages, not NULL. I don't really see what this could break, but disapprove it if I'm blind. Fixes #2337
author Will Thompson <will.thompson@collabora.co.uk>
date Sat, 12 Apr 2008 12:54:15 +0000
parents d7f7a87a8e38
children 487105d73907
files libpurple/server.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/server.c	Sat Apr 12 08:46:44 2008 +0000
+++ b/libpurple/server.c	Sat Apr 12 12:54:15 2008 +0000
@@ -705,7 +705,7 @@
 	if (conv == NULL)
 		conv = purple_conversation_new(PURPLE_CONV_TYPE_IM, account, name);
 
-	purple_conv_im_write(PURPLE_CONV_IM(conv), NULL, message, flags, mtime);
+	purple_conv_im_write(PURPLE_CONV_IM(conv), name, message, flags, mtime);
 	g_free(message);
 
 	/*