summaryrefslogtreecommitdiff
path: root/window.cpp
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2014-01-23 02:10:53 +0100
committerTreeki <treeki@gmail.com>2014-01-23 02:10:53 +0100
commit07e35b82c6d9ba075d42f8b0401d0616fbfc929c (patch)
tree1ea7673f552ecf961134f7a49ed9d2f02f256c8f /window.cpp
parentdba90fe669f7f8d89bc4e722be0c29decc9afde8 (diff)
downloadbounce4-07e35b82c6d9ba075d42f8b0401d0616fbfc929c.tar.gz
bounce4-07e35b82c6d9ba075d42f8b0401d0616fbfc929c.zip
force user to leave channels when disconnected from server
Diffstat (limited to '')
-rw-r--r--window.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/window.cpp b/window.cpp
index f48164c..00e3e22 100644
--- a/window.cpp
+++ b/window.cpp
@@ -356,3 +356,11 @@ char Channel::getEffectivePrefixChar(const char *nick) const {
return 0;
}
+
+
+void Channel::disconnected() {
+ if (inChannel) {
+ inChannel = false;
+ pushMessage("You have been disconnected.");
+ }
+}