From 93cb5d06dbfc716416c312b4fe58eb40e5ae0046 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 11 Jul 2014 01:02:02 -0400 Subject: [PATCH] Fix channelcount with clone --- src/regchannel.cpp | 5 +---- 1 file changed, 1 insertion(+), 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