diff options
-rw-r--r-- | src/irc/core/irc-nicklist.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/irc/core/irc-nicklist.c b/src/irc/core/irc-nicklist.c index 75bc17c2..ae87edcf 100644 --- a/src/irc/core/irc-nicklist.c +++ b/src/irc/core/irc-nicklist.c @@ -130,8 +130,9 @@ static void event_end_of_names(IRC_SERVER_REC *server, const char *data) /* stupid server - assume we have ops if channel is empty */ nicks = g_hash_table_size(chanrec->nicks); - irc_nicklist_insert(chanrec, server->nick, - nicks == 0, FALSE, FALSE); + ownnick = irc_nicklist_insert(chanrec, server->nick, + nicks == 0, FALSE, + FALSE); } nicklist_set_own(CHANNEL(chanrec), ownnick); chanrec->chanop = chanrec->ownnick->op; |