From 2d3069e6029c5487f1389a5a9c34efa1bb070609 Mon Sep 17 00:00:00 2001 From: HanzZ Date: Tue, 4 Dec 2012 18:42:00 +0100 Subject: [PATCH] Remove IRC buddies when leaving channel --- backends/libcommuni/session.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backends/libcommuni/session.h b/backends/libcommuni/session.h index b356b3dd..2e65f7a6 100644 --- a/backends/libcommuni/session.h +++ b/backends/libcommuni/session.h @@ -64,6 +64,7 @@ public: void removeAutoJoinChannel(const std::string &channel) { m_autoJoin.erase(channel); + removeIRCBuddies(channel); } void setIdentify(const std::string &identify) { @@ -82,6 +83,10 @@ public: m_buddies[channel].erase(name); } + void removeIRCBuddies(const std::string &channel) { + m_buddies.erase(channel); + } + bool correctNickname(std::string &nickname); void on_joined(IrcMessage *message);