mirror of
https://github.com/irssi/irssi.git
synced 2024-10-27 05:20:20 -04:00
Stop reconnecting on kills only if the kill was done by operator, not
server. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2813 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
1d10483021
commit
5be5d14890
@ -90,10 +90,11 @@ static void event_nick_collision(IRC_SERVER_REC *server, const char *data)
|
|||||||
server->nick_collision = TRUE;
|
server->nick_collision = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void event_kill(IRC_SERVER_REC *server, const char *data)
|
static void event_kill(IRC_SERVER_REC *server, const char *data,
|
||||||
|
const char *nick, const char *addr)
|
||||||
{
|
{
|
||||||
if (!server->nick_collision) {
|
if (addr != NULL && !server->nick_collision) {
|
||||||
/* don't reconnect if we were killed */
|
/* don't reconnect if we were killed by an oper (not server) */
|
||||||
server->no_reconnect = TRUE;
|
server->no_reconnect = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user