Remove IRC buddies when leaving channel

This commit is contained in:
HanzZ 2012-12-04 18:42:00 +01:00
parent 718dd59fda
commit 2d3069e602

View file

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