diff options
author | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-06-21 23:14:28 -0400 |
---|---|---|
committer | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-06-21 23:14:28 -0400 |
commit | 1e20877e2f529b61b205a0b1202c32962ee47938 (patch) | |
tree | 85e4655edf6071d41391362b5d9fcdd0589d63c8 /src/core/cs_set_founder.cpp | |
parent | fb16ce72a0b5a3ce336e003327c8d1740f4fdb98 (diff) |
The next of a few "CBX OCDing over code style" commits, focusing on src/core/bs_* and src/core/cs_*.
Diffstat (limited to 'src/core/cs_set_founder.cpp')
-rw-r--r-- | src/core/cs_set_founder.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/core/cs_set_founder.cpp b/src/core/cs_set_founder.cpp index c1dbfb62f..d835e7fea 100644 --- a/src/core/cs_set_founder.cpp +++ b/src/core/cs_set_founder.cpp @@ -7,10 +7,8 @@ * * Based on the original code of Epona by Lara. * Based on the original code of Services by Andy Church. - * - * $Id$ - * */ + /*************************************************************************/ #include "module.h" @@ -55,16 +53,15 @@ class CommandCSSetFounder : public Command return MOD_CONT; } - Alog() << Config.s_ChanServ << ": Changing founder of " << ci->name << " from " << ci->founder->display - << " to " << nc->display << " by " << u->GetMask(); + Alog() << Config.s_ChanServ << ": Changing founder of " << ci->name << " from " << ci->founder->display << " to " << nc->display << " by " << u->GetMask(); /* Founder and successor must not be the same group */ if (nc == ci->successor) ci->successor = NULL; - nc0->channelcount--; + --nc0->channelcount; ci->founder = nc; - nc->channelcount++; + ++nc->channelcount; notice_lang(Config.s_ChanServ, u, CHAN_FOUNDER_CHANGED, ci->name.c_str(), na->nick); @@ -115,7 +112,7 @@ class CSSetFounder : public Module CSSetFounder(const std::string &modname, const std::string &creator) : Module(modname, creator) { this->SetAuthor("Anope"); - this->SetVersion("$Id$"); + this->SetVersion(VERSION_STRING); this->SetType(CORE); Command *c = FindCommand(ChanServ, "SET"); |