diff options
| author | Adam <Adam@anope.org> | 2012-02-24 14:53:34 -0500 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2012-02-24 14:53:34 -0500 |
| commit | 2337b7717db05e0c8b53da2d61b5a66f58cc0297 (patch) | |
| tree | 4e69f0cfcb64b477cf751403883ff8f4847d31f9 /src/regchannel.cpp | |
| parent | 24811e59705f2d8995f900f82066084bf22f15ec (diff) | |
Fixed calculating bots channel count of assigned channels and fixed the order of saving memos (among other things)
Diffstat (limited to 'src/regchannel.cpp')
| -rw-r--r-- | src/regchannel.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/regchannel.cpp b/src/regchannel.cpp index 25526ee8b..42feddc7b 100644 --- a/src/regchannel.cpp +++ b/src/regchannel.cpp @@ -246,9 +246,6 @@ ChannelInfo::ChannelInfo(ChannelInfo &ci) : Flags<ChannelInfoFlag, CI_END>(Chann this->akick.clear(); this->badwords.clear(); - if (this->bi) - ++this->bi->chancount; - for (int i = 0; i < TTB_SIZE; ++i) this->ttb[i] = ci.ttb[i]; @@ -397,13 +394,7 @@ void ChannelInfo::unserialize(serialized_data &data) ci->levels[v[i]] = convertTo<int16_t>(v[i + 1]); } if (data.count("bi") > 0) - { - if (ci->bi) - ci->bi->chancount--; ci->bi = findbot(data["bi"].astr()); - if (ci->bi) - ci->bi->chancount++; - } data["capsmin"] >> ci->capsmin; data["capspercent"] >> ci->capspercent; data["floodlines"] >> ci->floodlines; |
