diff options
author | Timo Sirainen <cras@irssi.org> | 2001-12-06 23:10:41 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-12-06 23:10:41 +0000 |
commit | be8778052e5932c3d0b4b021ce00997b1f5f9880 (patch) | |
tree | 335257bcbc4c54bd69eafc49b41f598a16b61e57 /src/fe-common/irc/fe-events-numeric.c | |
parent | 6be1390303322916eb82e29ee7693eac2023c3dd (diff) | |
download | irssi-be8778052e5932c3d0b4b021ce00997b1f5f9880.zip |
On nick collision kills, reconnect back immediately. On any other type of
kills, stop reconnecting to the server entirely.
When reconnecting to server and setting back the old user mode, only use the
modes that we actually wanted to change with /MODE commands, don't try to
set back modes given to us by server (eg. +r).
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2205 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/irc/fe-events-numeric.c')
-rw-r--r-- | src/fe-common/irc/fe-events-numeric.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/fe-common/irc/fe-events-numeric.c b/src/fe-common/irc/fe-events-numeric.c index 2cd33806..bda9004b 100644 --- a/src/fe-common/irc/fe-events-numeric.c +++ b/src/fe-common/irc/fe-events-numeric.c @@ -465,6 +465,26 @@ static void event_whois_realhost(IRC_SERVER_REC *server, const char *data) g_free(params); } +static void event_whois_realhost327(IRC_SERVER_REC *server, const char *data) +{ + char *params, *nick, *hostname, *ip, *text; + + g_return_if_fail(data != NULL); + + /* <yournick> <hostname> <ip> :Real hostname/IP */ + params = event_get_params(data, 5, NULL, &nick, &hostname, &ip, &text); + if (*text == '\0') { + g_free(params); + + params = event_get_params(data, 2, NULL, &text); + printtext(server, NULL, MSGLEVEL_CRAP, "%s", text); + } else { + printformat(server, nick, MSGLEVEL_CRAP, + IRCTXT_WHOIS_REALHOST, nick, hostname); + } + g_free(params); +} + static void event_whois_usermode(IRC_SERVER_REC *server, const char *data) { char *params, *txt_usermodes, *nick, *usermode, *text; @@ -831,6 +851,7 @@ void fe_events_numeric_init(void) signal_add("event 381", (SIGNAL_FUNC) event_received); signal_add("event 421", (SIGNAL_FUNC) event_received); signal_add("event 432", (SIGNAL_FUNC) event_received); + signal_add("event 436", (SIGNAL_FUNC) event_received); signal_add("event 438", (SIGNAL_FUNC) event_received); signal_add("event 465", (SIGNAL_FUNC) event_received); @@ -908,6 +929,7 @@ void fe_events_numeric_deinit(void) signal_remove("event 381", (SIGNAL_FUNC) event_received); signal_remove("event 421", (SIGNAL_FUNC) event_received); signal_remove("event 432", (SIGNAL_FUNC) event_received); + signal_remove("event 436", (SIGNAL_FUNC) event_received); signal_remove("event 438", (SIGNAL_FUNC) event_received); signal_remove("event 465", (SIGNAL_FUNC) event_received); |