diff options
author | Adam <Adam@anope.org> | 2013-01-06 16:13:35 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-01-06 16:13:35 -0500 |
commit | ed719c80e75f36475626233207a530de2659a063 (patch) | |
tree | 303c53ce36324b286e10a3e76d98a5e22a13fe1c /modules/commands/os_defcon.cpp | |
parent | 77dc2e474669d8f0bee3cc047a10ddcfc4faf700 (diff) |
Buggy compilers are buggy
Diffstat (limited to 'modules/commands/os_defcon.cpp')
-rw-r--r-- | modules/commands/os_defcon.cpp | 36 |
1 files changed, 4 insertions, 32 deletions
diff --git a/modules/commands/os_defcon.cpp b/modules/commands/os_defcon.cpp index 4bcf9de38..6d043b17c 100644 --- a/modules/commands/os_defcon.cpp +++ b/modules/commands/os_defcon.cpp @@ -98,12 +98,11 @@ struct DefconConfig static DefconConfig DConfig; -/**************************************************************************/ - -void defcon_sendlvls(CommandSource &source); -void runDefCon(); +static void runDefCon(); static Anope::string defconReverseModes(const Anope::string &modes); +static ServiceReference<GlobalService> GlobalService("GlobalService", "Global"); + class DefConTimeout : public CallBack { int level; @@ -556,34 +555,7 @@ class OSDefcon : public Module } }; -/** - * Send a message to the oper about which precautions are "active" for this level - **/ -void defcon_sendlvls(CommandSource &source) -{ - if (DConfig.Check(DEFCON_NO_NEW_CHANNELS)) - source.Reply(_("* No new channel registrations")); - if (DConfig.Check(DEFCON_NO_NEW_NICKS)) - source.Reply(_("* No new nick registrations")); - if (DConfig.Check(DEFCON_NO_MLOCK_CHANGE)) - source.Reply(_("* No MLOCK changes")); - if (DConfig.Check(DEFCON_FORCE_CHAN_MODES) && !DConfig.chanmodes.empty()) - source.Reply(_("* Force Chan Modes (%s) to be set on all channels"), DConfig.chanmodes.c_str()); - if (DConfig.Check(DEFCON_REDUCE_SESSION)) - source.Reply(_("* Use the reduced session limit of %d"), DConfig.sessionlimit); - if (DConfig.Check(DEFCON_NO_NEW_CLIENTS)) - source.Reply(_("* Kill any NEW clients connecting")); - if (DConfig.Check(DEFCON_OPER_ONLY)) - source.Reply(_("* Ignore any non-opers with message")); - if (DConfig.Check(DEFCON_SILENT_OPER_ONLY)) - source.Reply(_("* Silently ignore non-opers")); - if (DConfig.Check(DEFCON_AKILL_NEW_CLIENTS)) - source.Reply(_("* AKILL any new clients connecting")); - if (DConfig.Check(DEFCON_NO_NEW_MEMOS)) - source.Reply(_("* No new memos sent")); -} - -void runDefCon() +static void runDefCon() { if (DConfig.Check(DEFCON_FORCE_CHAN_MODES)) { |