mirror of
https://github.com/moparisthebest/Yaaic
synced 2025-01-09 20:58:02 -05:00
IRCConnection: Rejoin channels on reconnect
This commit is contained in:
parent
acc22fe296
commit
7e8fc26791
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user