From 4d5200a4e1c7647e34b5fc490ec4fa304182f1f0 Mon Sep 17 00:00:00 2001 From: Valentin Batz Date: Sat, 14 May 2005 12:32:03 +0000 Subject: [PATCH] Fixed a bug with isupport, after an upgrade from 0.8.9 prefix very well can be NULL, so check for it git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3750 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/irc/core/modes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {