return;
}
- Bot removedBot = networkBots.remove(network.get(), channelLeft.client().nick().get());
- if (removedBot != null) {
- eventBus.post(new GenericMessage(String.format("Bot %s (%s) was removed, %d packs removed.", removedBot.name(), removedBot.network().name(), removedBot.packs().size())));
- }
+ networkBots.remove(network.get(), channelLeft.client().nick().get());
}
/**
return;
}
- Bot removedBot = networkBots.remove(network.get(), clientQuit.client().nick().get());
- if (removedBot != null) {
- eventBus.post(new GenericMessage(String.format("Bot %s (%s) was removed, %d packs removed.", removedBot.name(), removedBot.network().name(), removedBot.packs().size())));
- }
+ networkBots.remove(network.get(), clientQuit.client().nick().get());
}
/**