summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-12-03 04:27:01 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-12-03 04:27:01 +0000
commit03b33224323d909314af440dab513dea66fd8ec5 (patch)
tree130520db87faca99e5a6d4e7f48877b781ad0715 /src
parentde0e6b0184117e32fcdf9e38634012fc12f58a03 (diff)
downloadirssi-03b33224323d909314af440dab513dea66fd8ec5.zip
Reply to clients which send IRSSILAG notices to themselves.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@935 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r--src/irc/proxy/listen.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/irc/proxy/listen.c b/src/irc/proxy/listen.c
index 107f9758..1aafa3c7 100644
--- a/src/irc/proxy/listen.c
+++ b/src/irc/proxy/listen.c
@@ -156,6 +156,13 @@ static void handle_client_cmd(CLIENT_REC *client, char *cmd, char *args)
return;
}
}
+ if (strcmp(cmd, "NOTICE") == 0) {
+ char *str = g_strdup_printf("%s :\001IRSSILAG ", client->nick);
+
+ if (strncmp(args, str, strlen(str)) == 0)
+ proxy_outserver(client, "NOTICE %s", args);
+ g_free(str);
+ }
if (client->server == NULL || !client->server->connected) {
proxy_outdata(client, ":%s NOTICE %s :Not connected to server",