1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2025-01-10 05:08:18 -05:00

IRCConnection: Rejoin channels on reconnect

This commit is contained in:
Sebastian Kaspari 2010-04-17 23:16:17 +02:00
parent acc22fe296
commit 7e8fc26791

View File

@ -978,6 +978,9 @@ public class IRCConnection extends PircBot
public void onDisconnect() public void onDisconnect()
{ {
if (service.getSettings().isReconnectEnabled()) { if (service.getSettings().isReconnectEnabled()) {
setAutojoinChannels(server.getCurrentChannelNames());
server.clearConversations();
server.setStatus(Status.CONNECTING); server.setStatus(Status.CONNECTING);
service.connect(server); service.connect(server);
} else { } else {