summaryrefslogtreecommitdiff
path: root/src/fe-common/irc
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-11-11 18:59:19 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-11-11 18:59:19 +0000
commit850cf993eb8d5e20b9b845e42e4bdae1a6cae81f (patch)
tree76ac7694abd05394ae84e10763b406be88ad86aa /src/fe-common/irc
parent712f3b383da947f5c565fba3695dbcd02136ce4b (diff)
downloadirssi-850cf993eb8d5e20b9b845e42e4bdae1a6cae81f.zip
Moved rewritten server redirection code from core to irc. This new code
should be able to do the redirecting a lot more error-proof. Changed lag-checking to use PINGs instead of NOTIFYs. This breaks scripts using redirection. Hopefully this doesn't break too much things in irssi :) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1980 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/irc')
-rw-r--r--src/fe-common/irc/fe-events.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/fe-common/irc/fe-events.c b/src/fe-common/irc/fe-events.c
index 97b505fb..df536f42 100644
--- a/src/fe-common/irc/fe-events.c
+++ b/src/fe-common/irc/fe-events.c
@@ -309,17 +309,10 @@ static void event_connected(IRC_SERVER_REC *server)
return;
/* someone has our nick, find out who. */
+ server_redirect_event(server, "whois", nick, FALSE, NULL,
+ "event 311", "nickfind event whois",
+ "", "event empty", NULL);
irc_send_cmdv(server, "WHOIS %s", nick);
- server_redirect_event((SERVER_REC *) server, nick, 1,
- "event 318", "event empty", 1,
- "event 401", "event empty", 1,
- "event 311", "nickfind event whois", 1,
- "event 301", "event empty", 1,
- "event 312", "event empty", 1,
- "event 313", "event empty", 1,
- "event 317", "event empty", 1,
- "event 319", "event empty", 1, NULL);
-
}
static void event_nickfind_whois(IRC_SERVER_REC *server, const char *data)