diff options
author | Adam <Adam@anope.org> | 2014-07-11 01:02:02 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2014-07-11 01:02:02 -0400 |
commit | 93cb5d06dbfc716416c312b4fe58eb40e5ae0046 (patch) | |
tree | 98ef536f665837fd89dce4ca97ca710577b44ff8 /src/regchannel.cpp | |
parent | 7a64d95f7c796d91dbe1250dc1d88ecf8c113610 (diff) |
Fix channelcount with clone
Diffstat (limited to 'src/regchannel.cpp')
-rw-r--r-- | src/regchannel.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/regchannel.cpp b/src/regchannel.cpp index 5c00e291a..37fca0528 100644 --- a/src/regchannel.cpp +++ b/src/regchannel.cpp @@ -132,7 +132,7 @@ ChannelInfo::ChannelInfo(const ChannelInfo &ci) : Serializable("ChannelInfo"), *this = ci; if (this->founder) - --this->founder->channelcount; + ++this->founder->channelcount; this->access->clear(); this->akick->clear(); @@ -200,9 +200,6 @@ ChannelInfo::~ChannelInfo() delete this->memos.GetMemo(i); this->memos.memos->clear(); } - - if (this->founder) - --this->founder->channelcount; } void ChannelInfo::Serialize(Serialize::Data &data) const |