From 7e8fc267914340431d3e3c45b8e5af048fd267f4 Mon Sep 17 00:00:00 2001 From: Sebastian Kaspari Date: Sat, 17 Apr 2010 23:16:17 +0200 Subject: [PATCH] IRCConnection: Rejoin channels on reconnect --- src/org/yaaic/irc/IRCConnection.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/org/yaaic/irc/IRCConnection.java b/src/org/yaaic/irc/IRCConnection.java index 9e7d5d7..6feda9e 100644 --- a/src/org/yaaic/irc/IRCConnection.java +++ b/src/org/yaaic/irc/IRCConnection.java @@ -978,6 +978,9 @@ public class IRCConnection extends PircBot public void onDisconnect() { if (service.getSettings().isReconnectEnabled()) { + setAutojoinChannels(server.getCurrentChannelNames()); + + server.clearConversations(); server.setStatus(Status.CONNECTING); service.connect(server); } else {