summaryrefslogtreecommitdiff
path: root/src/regchannel.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2014-07-11 01:02:02 -0400
committerAdam <Adam@anope.org>2014-07-11 01:02:02 -0400
commit93cb5d06dbfc716416c312b4fe58eb40e5ae0046 (patch)
tree98ef536f665837fd89dce4ca97ca710577b44ff8 /src/regchannel.cpp
parent7a64d95f7c796d91dbe1250dc1d88ecf8c113610 (diff)
Fix channelcount with clone
Diffstat (limited to 'src/regchannel.cpp')
-rw-r--r--src/regchannel.cpp5
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