summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-11-17 14:59:32 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-11-17 14:59:32 +0000
commit2edcdd715ffd5c3ddd0009a75f8f2f451cdb9c57 (patch)
treed201bff69108b9cd914719677d3e447e29c346b0 /src/core
parent090e88b34db29b681c7579472aafa211832d38af (diff)
downloadirssi-2edcdd715ffd5c3ddd0009a75f8f2f451cdb9c57.zip
Remember who set the topic and when, display the info when using /TOPIC.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@845 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core')
-rw-r--r--src/core/channel-rec.h2
-rw-r--r--src/core/channels.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/core/channel-rec.h b/src/core/channel-rec.h
index 9e991cb4..e0d5b858 100644
--- a/src/core/channel-rec.h
+++ b/src/core/channel-rec.h
@@ -3,6 +3,8 @@
#include "window-item-rec.h"
char *topic;
+char *topic_by;
+time_t topic_time;
GHashTable *nicks; /* list of nicks */
int no_modes:1; /* channel doesn't support modes */
diff --git a/src/core/channels.c b/src/core/channels.c
index 2d487d3e..3214a389 100644
--- a/src/core/channels.c
+++ b/src/core/channels.c
@@ -78,6 +78,7 @@ void channel_destroy(CHANNEL_REC *channel)
MODULE_DATA_DEINIT(channel);
g_free_not_null(channel->topic);
+ g_free_not_null(channel->topic_by);
g_free_not_null(channel->key);
g_free(channel->mode);
g_free(channel->name);