mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Removed module_data from NICK_REC. It's not used for anything and just takes memory.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2317 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
ff6d1dd0cd
commit
ab19c70aa1
@ -20,7 +20,7 @@ unsigned int op:1;
|
||||
unsigned int halfop:1;
|
||||
unsigned int voice:1;
|
||||
|
||||
GHashTable *module_data;
|
||||
/*GHashTable *module_data;*/
|
||||
|
||||
void *unique_id; /* unique ID to use for comparing if one nick is in another channels,
|
||||
or NULL = nicks are unique, just keep comparing them. */
|
||||
|
@ -76,7 +76,7 @@ static void nick_hash_remove(CHANNEL_REC *channel, NICK_REC *nick)
|
||||
/* Add new nick to list */
|
||||
void nicklist_insert(CHANNEL_REC *channel, NICK_REC *nick)
|
||||
{
|
||||
MODULE_DATA_INIT(nick);
|
||||
/*MODULE_DATA_INIT(nick);*/
|
||||
|
||||
nick->type = module_get_uniq_id("NICK", 0);
|
||||
nick->chat_type = channel->chat_type;
|
||||
@ -102,7 +102,7 @@ static void nicklist_destroy(CHANNEL_REC *channel, NICK_REC *nick)
|
||||
{
|
||||
signal_emit("nicklist remove", 2, channel, nick);
|
||||
|
||||
MODULE_DATA_DEINIT(nick);
|
||||
/*MODULE_DATA_DEINIT(nick);*/
|
||||
g_free(nick->nick);
|
||||
g_free_not_null(nick->realname);
|
||||
g_free_not_null(nick->host);
|
||||
|
Loading…
Reference in New Issue
Block a user