1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

Set ownnick to channel->NULL when the nick record is destroyed. Should fix

some perl script errors.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2592 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-03-13 01:30:20 +00:00 committed by cras
parent 2a57e797ce
commit 8ba1989227

View File

@ -102,6 +102,9 @@ static void nicklist_destroy(CHANNEL_REC *channel, NICK_REC *nick)
{
signal_emit("nicklist remove", 2, channel, nick);
if (channel->ownnick == nick)
channel->ownnick = NULL;
/*MODULE_DATA_DEINIT(nick);*/
g_free(nick->nick);
g_free_not_null(nick->realname);