From 03b33224323d909314af440dab513dea66fd8ec5 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 3 Dec 2000 04:27:01 +0000 Subject: [PATCH] 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 --- src/irc/proxy/listen.c | 7 +++++++ 1 file changed, 7 insertions(+) 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",