diff options
author | Valentin Batz <senneth@irssi.org> | 2005-05-14 12:32:03 +0000 |
---|---|---|
committer | vb <vb@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2005-05-14 12:32:03 +0000 |
commit | 4d5200a4e1c7647e34b5fc490ec4fa304182f1f0 (patch) | |
tree | bd38e32069e4cc649464cb87813183b0f5181640 /src | |
parent | c79e690e885af85e62653560b3a6ff93f6e34277 (diff) | |
download | irssi-4d5200a4e1c7647e34b5fc490ec4fa304182f1f0.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/irc/core/modes.c | 2 |
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) { |