summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/irc/notifylist/notifylist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irc/notifylist/notifylist.c b/src/irc/notifylist/notifylist.c
index 402e315e..3d050a9d 100644
--- a/src/irc/notifylist/notifylist.c
+++ b/src/irc/notifylist/notifylist.c
@@ -279,7 +279,7 @@ static void notifylist_check_join(IRC_SERVER_REC *server, const char *nick,
if (rec != NULL && rec->join_announced) return;
if (rec == NULL) rec = notify_nick_create(server, nick);
- user = g_strdup(userhost);
+ user = g_strdup(userhost == NULL ? "" : userhost);
host = strchr(user, '@');
if (host != NULL) *host++ = '\0'; else host = "";