summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorValentin Batz <senneth@irssi.org>2005-05-14 12:32:03 +0000
committervb <vb@dbcabf3a-b0e7-0310-adc4-f8d773084564>2005-05-14 12:32:03 +0000
commit4d5200a4e1c7647e34b5fc490ec4fa304182f1f0 (patch)
treebd38e32069e4cc649464cb87813183b0f5181640 /src
parentc79e690e885af85e62653560b3a6ff93f6e34277 (diff)
downloadirssi-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.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) {