diff mcabber/src/hooks.c @ 479:b82428ac107d

resname can be a null pointer in sme cases
author Mikael Berthe <mikael@lilotux.net>
date Mon, 03 Oct 2005 23:59:56 +0200
parents d11e5ce2582c
children 4a10c04ac2fb
line wrap: on
line diff
--- 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);
   }