mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 12:23:37 +02:00
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
This commit is contained in:
parent
6be1390303
commit
be8778052e
5 changed files with 81 additions and 12 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue