Fix a bug in the history logging (incoming "/me " messages)
authorMikael Berthe <mikael@lilotux.net>
Sat, 06 Jan 2007 12:10:17 +0100
changeset 1116 14e458020e23
parent 1115 922a9ae1a17e
child 1119 c68b3c9f616e
Fix a bug in the history logging (incoming "/me " messages) There is a bug in the history logging. If someone sends a "/me bla" message, it won't be saved, only "MR 20070105T00:23:05Z 000" (Problem reported by Frank Zschockelt)
mcabber/src/hooks.c
--- a/mcabber/src/hooks.c	Thu Dec 28 15:00:59 2006 +0100
+++ b/mcabber/src/hooks.c	Sat Jan 06 12:10:17 2007 +0100
@@ -65,6 +65,7 @@
         wmsg = mmsg = g_strdup_printf("*%s %s", resname, msg+4);
     }
   } else {
+    bmsg = g_strdup(msg);
     if (!strncmp(msg, COMMAND_ME, strlen(COMMAND_ME)))
       wmsg = mmsg = g_strdup_printf("*%s %s", bjid, msg+4);
     else