Avoid sending PART command for unjoined channels

fix #3205
This commit is contained in:
louiz’
2016-10-05 00:18:22 +02:00
parent 55daa3e61c
commit 3620d533ee
3 changed files with 18 additions and 13 deletions
-6
View File
@@ -1,12 +1,6 @@
#include <irc/irc_channel.hpp>
#include <algorithm>
IrcChannel::IrcChannel():
joined(false),
self(nullptr)
{
}
void IrcChannel::set_self(const std::string& name)
{
this->self = std::make_unique<IrcUser>(name);