1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

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
This commit is contained in:
Valentin Batz 2005-05-14 12:32:03 +00:00 committed by vb
parent c79e690e88
commit 4d5200a4e1

View File

@ -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) {