1
0
forked from bip/bip

Kick instead of part when server disconnects to keep window open in irssi

This commit is contained in:
nohar 2005-07-25 08:27:03 +00:00
parent 783405e504
commit 8df2b019df

View File

@ -833,9 +833,9 @@ static void irc_notify_disconnection(struct link_server *is)
for (hash_it_init(&is->channels, &hi); hash_it_item(&hi); for (hash_it_init(&is->channels, &hi); hash_it_item(&hi);
hash_it_next(&hi)) { hash_it_next(&hi)) {
struct channel *c = (struct channel *)hash_it_item(&hi); struct channel *c = (struct channel *)hash_it_item(&hi);
WRITE_LINE2(CONN(ic), is->irc_mask, "PART", WRITE_LINE3(CONN(ic), P_IRCMASK, "KICK",
c->name, "Server disconnected, " c->name, is->nick,
"reconnecting"); "Server disconnected, reconnecting");
} }
WRITE_LINE2(CONN(ic), P_IRCMASK, "PRIVMSG", is->irc_mask, WRITE_LINE2(CONN(ic), P_IRCMASK, "PRIVMSG", is->irc_mask,
"Server disconnected, reconnecting"); "Server disconnected, reconnecting");