diff options
Diffstat (limited to 'src/regchannel.cpp')
-rw-r--r-- | src/regchannel.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/regchannel.cpp b/src/regchannel.cpp index 75edad507..8bbd5d1a6 100644 --- a/src/regchannel.cpp +++ b/src/regchannel.cpp @@ -62,7 +62,7 @@ Serializable* AutoKick::Unserialize(Serializable *obj, Serialize::Data &data) ChannelInfo *ci = ChannelInfo::Find(sci); if (!ci) return NULL; - + AutoKick *ak; NickCore *nc = NickCore::Find(snc); if (obj) @@ -87,7 +87,7 @@ Serializable* AutoKick::Unserialize(Serializable *obj, Serialize::Data &data) data["reason"] >> sreason; data["mask"] >> smask; - if (nc) + if (nc) ak = ci->AddAkick(screator, nc, sreason, addtime, lastused); else ak = ci->AddAkick(screator, smask, sreason, addtime, lastused); @@ -358,7 +358,7 @@ BotInfo *ChannelInfo::WhoSends() const { if (this && this->bi) return this->bi; - + BotInfo *ChanServ = Config->GetClient("ChanServ"); if (ChanServ) return ChanServ; @@ -578,7 +578,7 @@ void ChannelInfo::EraseAkick(unsigned index) { if (this->akick->empty() || index >= this->akick->size()) return; - + delete this->GetAkick(index); } |