summaryrefslogtreecommitdiff
path: root/ircserver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ircserver.cpp')
-rw-r--r--ircserver.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/ircserver.cpp b/ircserver.cpp
index 7e20310..31cbd6d 100644
--- a/ircserver.cpp
+++ b/ircserver.cpp
@@ -73,6 +73,9 @@ void IRCServer::connectedEvent() {
void IRCServer::disconnectedEvent() {
printf("[IRCServer:%p] disconnectedEvent\n", this);
status.pushMessage("Disconnected.");
+
+ for (auto &i : channels)
+ i.second->disconnected();
}
void IRCServer::lineReceivedEvent(char *line, int size) {
printf("[%d] { %s }\n", size, line);