summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/irc/core/modes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irc/core/modes.c b/src/irc/core/modes.c
index cac897ec..e30e7447 100644
--- a/src/irc/core/modes.c
+++ b/src/irc/core/modes.c
@@ -258,7 +258,7 @@ void modes_type_prefix(IRC_CHANNEL_REC *channel, const char *setby,
/* see if we need to update channel->chanop */
const char *prefix =
g_hash_table_lookup(channel->server->isupport, "PREFIX");
- if (*prefix == '(') {
+ if (prefix != NULL && *prefix == '(') {
prefix++;
while (*prefix != ')' && *prefix != '\0') {
if (*prefix == mode) {