mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 00:52:30 +02:00
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:
parent
809fa17d82
commit
a99e93ef5d
4 changed files with 38 additions and 16 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue