mcabber/src/hooks.c
changeset 479 b82428ac107d
parent 477 d11e5ce2582c
child 483 4a10c04ac2fb
--- a/mcabber/src/hooks.c	Mon Oct 03 22:12:24 2005 +0200
+++ b/mcabber/src/hooks.c	Mon Oct 03 23:59:56 2005 +0200
@@ -73,6 +73,7 @@
 
   if (!is_groupchat && is_room) {
     // This is a private message from a room participant
+    if (!resname) resname = "";
     wmsg = bmsg = g_strdup_printf("PRIV#<%s> %s", resname, msg);
   }