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);