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:
parent
acc22fe296
commit
7e8fc26791
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user