summaryrefslogtreecommitdiff
path: root/bouncer/ircserver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bouncer/ircserver.cpp')
-rw-r--r--bouncer/ircserver.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/bouncer/ircserver.cpp b/bouncer/ircserver.cpp
index 818478f..63d5c90 100644
--- a/bouncer/ircserver.cpp
+++ b/bouncer/ircserver.cpp
@@ -72,6 +72,16 @@ Query *IRCServer::findQuery(const char *name, bool createIfNeeded) {
}
}
+void IRCServer::deleteQuery(Query *query) {
+ auto i = queries.find(query->partner);
+ if (i != queries.end()) {
+ bouncer->deregisterWindow(query);
+
+ queries.erase(i);
+ delete query;
+ }
+}
+
void IRCServer::connectedEvent() {