summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWouter Coekaerts <coekie@irssi.org>2005-04-25 20:31:12 +0000
committercoekie <coekie@dbcabf3a-b0e7-0310-adc4-f8d773084564>2005-04-25 20:31:12 +0000
commit0e878b22f9b3e9569f7f0ddf82023ff2556c7fd1 (patch)
tree870254e6d0be3ceb34ceeaedfe9840a7c3ab7883 /src
parent88b387c118b430166223d7ba6e7df0159fab872e (diff)
downloadirssi-0e878b22f9b3e9569f7f0ddf82023ff2556c7fd1.zip
Fix displaying of ctcp userinfo and clientinfo (Bug 222)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3725 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r--src/fe-common/irc/fe-ctcp.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/fe-common/irc/fe-ctcp.c b/src/fe-common/irc/fe-ctcp.c
index fed3f4d1..bddac989 100644
--- a/src/fe-common/irc/fe-ctcp.c
+++ b/src/fe-common/irc/fe-ctcp.c
@@ -79,6 +79,22 @@ static void ctcp_time_msg(IRC_SERVER_REC *server, const char *data,
data, nick, addr, target);
}
+static void ctcp_userinfo_msg(IRC_SERVER_REC *server, const char *data,
+ const char *nick, const char *addr,
+ const char *target)
+{
+ signal_emit("message irc ctcp", 6, server, "USERINFO",
+ data, nick, addr, target);
+}
+
+static void ctcp_clientinfo_msg(IRC_SERVER_REC *server, const char *data,
+ const char *nick, const char *addr,
+ const char *target)
+{
+ signal_emit("message irc ctcp", 6, server, "CLIENTINFO",
+ data, nick, addr, target);
+}
+
static void ctcp_default_reply(IRC_SERVER_REC *server, const char *data,
const char *nick, const char *addr,
const char *target)
@@ -131,6 +147,8 @@ void fe_ctcp_init(void)
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("ctcp msg userinfo", (SIGNAL_FUNC) ctcp_userinfo_msg);
+ signal_add("ctcp msg clientinfo", (SIGNAL_FUNC) ctcp_clientinfo_msg);
signal_add("default ctcp reply", (SIGNAL_FUNC) ctcp_default_reply);
signal_add("ctcp reply ping", (SIGNAL_FUNC) ctcp_ping_reply);
}
@@ -141,6 +159,8 @@ void fe_ctcp_deinit(void)
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("ctcp msg userinfo", (SIGNAL_FUNC) ctcp_userinfo_msg);
+ signal_remove("ctcp msg clientinfo", (SIGNAL_FUNC) ctcp_clientinfo_msg);
signal_remove("default ctcp reply", (SIGNAL_FUNC) ctcp_default_reply);
signal_remove("ctcp reply ping", (SIGNAL_FUNC) ctcp_ping_reply);
}