summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-01-15 14:07:19 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-01-15 14:07:19 +0000
commitab19c70aa16411619f2a2490eb8366426a057aed (patch)
tree58d7e9ba9ee28d6fa7607c89ce61b1ff77c8e8e5 /src
parentff6d1dd0cd797c229393b3a46e241b50ba0f3ffc (diff)
downloadirssi-ab19c70aa16411619f2a2490eb8366426a057aed.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/core/nick-rec.h2
-rw-r--r--src/core/nicklist.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/nick-rec.h b/src/core/nick-rec.h
index 7dff6f32..d0dbce3d 100644
--- a/src/core/nick-rec.h
+++ b/src/core/nick-rec.h
@@ -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. */
diff --git a/src/core/nicklist.c b/src/core/nicklist.c
index 66b58ffb..01e590fa 100644
--- a/src/core/nicklist.c
+++ b/src/core/nicklist.c
@@ -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);