summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/irc/core/irc-nicklist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irc/core/irc-nicklist.c b/src/irc/core/irc-nicklist.c
index 46dde7b7..1bca67c9 100644
--- a/src/irc/core/irc-nicklist.c
+++ b/src/irc/core/irc-nicklist.c
@@ -434,7 +434,7 @@ static const char *get_nick_flags(SERVER_REC *server)
const char *prefix =
g_hash_table_lookup(irc_server->isupport, "PREFIX");
- prefix = strchr(prefix, ')');
+ prefix = prefix == NULL ? NULL : strchr(prefix, ')');
return prefix == NULL ? "" : prefix+1;
}