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)
--- 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