diff mcabber/src/hooks.c @ 1116:14e458020e23

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)
author Mikael Berthe <mikael@lilotux.net>
date Sat, 06 Jan 2007 12:10:17 +0100
parents 7e383aa48b3d
children 1a109ebf3f24
line wrap: on
line diff
--- 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