summaryrefslogtreecommitdiff
path: root/modules/core/os_defcon.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-10-02 00:07:39 -0400
committerAdam <Adam@anope.org>2010-10-02 00:07:39 -0400
commita62d824cb4266cdfbfbc81e142b22f1a2e7ed7be (patch)
treede976c91aeac6dc0be1cd2e46bed76fe60a352e4 /modules/core/os_defcon.cpp
parente3afb119b925513c103c661ffc3c75c7602005e1 (diff)
Made MemoServ optional
Diffstat (limited to 'modules/core/os_defcon.cpp')
-rw-r--r--modules/core/os_defcon.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/core/os_defcon.cpp b/modules/core/os_defcon.cpp
index 525aa9b94..89bc2b6f0 100644
--- a/modules/core/os_defcon.cpp
+++ b/modules/core/os_defcon.cpp
@@ -225,7 +225,7 @@ class OSDefcon : public Module
EventReturn OnPreCommand(User *u, BotInfo *service, const Anope::string &command, const std::vector<Anope::string> &params)
{
- if (service == findbot(Config->s_NickServ))
+ if (service == NickServ)
{
if (command.equals_ci("REGISTER") || command.equals_ci("GROUP"))
{
@@ -236,7 +236,7 @@ class OSDefcon : public Module
}
}
}
- else if (service == findbot(Config->s_ChanServ))
+ else if (ChanServ && service == ChanServ)
{
if (command.equals_ci("SET"))
{
@@ -255,7 +255,7 @@ class OSDefcon : public Module
}
}
}
- else if (service == findbot(Config->s_MemoServ))
+ else if (MemoServ && service == MemoServ)
{
if (command.equals_ci("SEND") || command.equals_ci("SENDALL"))
{