summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-05-15 15:32:27 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-05-15 15:32:27 +0000
commit45788e7788b6dc57ea2390a6166907d5a0825bff (patch)
tree448ee58c6f6afb70940d35f811f6dac0dc2bfcc5
parentffaab13c8b2189956b841ec9fa3a25a4dafc4a03 (diff)
downloadirssi-45788e7788b6dc57ea2390a6166907d5a0825bff.zip
Also print the "CTCP TIME received" to screen :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@223 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r--src/fe-common/irc/fe-ctcp.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/fe-common/irc/fe-ctcp.c b/src/fe-common/irc/fe-ctcp.c
index 7a9c7cc5..6d469ba1 100644
--- a/src/fe-common/irc/fe-ctcp.c
+++ b/src/fe-common/irc/fe-ctcp.c
@@ -60,6 +60,11 @@ static void ctcp_version_msg(const char *data, IRC_SERVER_REC *server, const cha
ctcp_print("CTCP VERSION", data, server, nick, addr, target);
}
+static void ctcp_time_msg(const char *data, IRC_SERVER_REC *server, const char *nick, const char *addr, const char *target)
+{
+ ctcp_print("CTCP TIME", data, server, nick, addr, target);
+}
+
static void ctcp_default_reply(const char *data, IRC_SERVER_REC *server, const char *nick, const char *addr, const char *target)
{
char *ptr, *str;
@@ -96,6 +101,7 @@ void fe_ctcp_init(void)
signal_add("default ctcp msg", (SIGNAL_FUNC) ctcp_default_msg);
signal_add("ctcp msg ping", (SIGNAL_FUNC) ctcp_ping_msg);
signal_add("ctcp msg version", (SIGNAL_FUNC) ctcp_version_msg);
+ signal_add("ctcp msg time", (SIGNAL_FUNC) ctcp_time_msg);
signal_add("default ctcp reply", (SIGNAL_FUNC) ctcp_default_reply);
signal_add("ctcp reply ping", (SIGNAL_FUNC) ctcp_ping_reply);
}
@@ -105,6 +111,7 @@ void fe_ctcp_deinit(void)
signal_remove("default ctcp msg", (SIGNAL_FUNC) ctcp_default_msg);
signal_remove("ctcp msg ping", (SIGNAL_FUNC) ctcp_ping_msg);
signal_remove("ctcp msg version", (SIGNAL_FUNC) ctcp_version_msg);
+ signal_remove("ctcp msg time", (SIGNAL_FUNC) ctcp_time_msg);
signal_remove("default ctcp reply", (SIGNAL_FUNC) ctcp_default_reply);
signal_remove("ctcp reply ping", (SIGNAL_FUNC) ctcp_ping_reply);
}