diff options
author | Treeki <treeki@gmail.com> | 2014-01-23 02:10:53 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2014-01-23 02:10:53 +0100 |
commit | 07e35b82c6d9ba075d42f8b0401d0616fbfc929c (patch) | |
tree | 1ea7673f552ecf961134f7a49ed9d2f02f256c8f /ircserver.cpp | |
parent | dba90fe669f7f8d89bc4e722be0c29decc9afde8 (diff) | |
download | bounce4-07e35b82c6d9ba075d42f8b0401d0616fbfc929c.tar.gz bounce4-07e35b82c6d9ba075d42f8b0401d0616fbfc929c.zip |
force user to leave channels when disconnected from server
Diffstat (limited to 'ircserver.cpp')
-rw-r--r-- | ircserver.cpp | 3 |
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); |