NICK_REC can be now inherited

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@971 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-12-06 01:07:21 +00:00 committed by cras
commit a99e93ef5d
4 changed files with 38 additions and 16 deletions

View file

@ -39,6 +39,10 @@ NICK_REC *nicklist_insert(CHANNEL_REC *channel, const char *nick,
rec = g_new0(NICK_REC, 1);
MODULE_DATA_INIT(rec);
rec->type = module_get_uniq_id("NICK", 0);
rec->chat_type = channel->chat_type;
if (op) rec->op = TRUE;
if (voice) rec->voice = TRUE;
@ -310,4 +314,6 @@ void nicklist_deinit(void)
{
signal_remove("channel created", (SIGNAL_FUNC) sig_channel_created);
signal_remove("channel destroyed", (SIGNAL_FUNC) sig_channel_destroyed);
module_uniq_destroy("NICK");
}