summaryrefslogtreecommitdiff
path: root/src/core/cs_set_persist.cpp
diff options
context:
space:
mode:
authorNaram Qashat <cyberbotx@cyberbotx.com>2010-06-21 23:14:28 -0400
committerNaram Qashat <cyberbotx@cyberbotx.com>2010-06-21 23:14:28 -0400
commit1e20877e2f529b61b205a0b1202c32962ee47938 (patch)
tree85e4655edf6071d41391362b5d9fcdd0589d63c8 /src/core/cs_set_persist.cpp
parentfb16ce72a0b5a3ce336e003327c8d1740f4fdb98 (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_persist.cpp')
-rw-r--r--src/core/cs_set_persist.cpp20
1 files changed, 6 insertions, 14 deletions
diff --git a/src/core/cs_set_persist.cpp b/src/core/cs_set_persist.cpp
index 592e54485..c3f3c16d0 100644
--- a/src/core/cs_set_persist.cpp
+++ b/src/core/cs_set_persist.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"
@@ -44,19 +42,15 @@ class CommandCSSetPersist : public Command
}
/* No botserv bot, no channel mode */
+ /* Give them ChanServ
+ * Yes, this works fine with no Config.s_BotServ
+ */
if (!ci->bi && !cm)
- {
- /* Give them ChanServ
- * Yes, this works fine with no Config.s_BotServ
- */
- ChanServ->Assign(NULL, ci);
- }
+ ChanServ->Assign(NULL, ci);
/* Set the perm mode */
if (cm && ci->c && !ci->c->HasMode(CMODE_PERM))
- {
ci->c->SetMode(NULL, cm);
- }
}
notice_lang(Config.s_ChanServ, u, CHAN_SET_PERSIST_ON, ci->name.c_str());
@@ -77,10 +71,8 @@ class CommandCSSetPersist : public Command
* which was assigned when persist was set on
*/
if (!cm && !Config.s_BotServ && ci->bi)
- {
/* Unassign bot */
ChanServ->UnAssign(NULL, ci);
- }
if (ci->c && ci->c->users.empty())
delete ci->c;
@@ -136,7 +128,7 @@ class CSSetPersist : public Module
CSSetPersist(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");