summaryrefslogtreecommitdiff
path: root/modules/core/cs_clear.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-08-27 20:56:28 -0400
committerAdam <Adam@anope.org>2010-08-27 20:56:28 -0400
commitc2ddecc2b1dbc9d055166bdf296da2e4536f74f6 (patch)
tree9b98582630a2debab628e23d4d796885f50ada74 /modules/core/cs_clear.cpp
parent73fb94c55344b6ad788c925bf13325236402891f (diff)
Added a new logging system
Diffstat (limited to 'modules/core/cs_clear.cpp')
-rw-r--r--modules/core/cs_clear.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/core/cs_clear.cpp b/modules/core/cs_clear.cpp
index 42a9bd53a..1fa61fc56 100644
--- a/modules/core/cs_clear.cpp
+++ b/modules/core/cs_clear.cpp
@@ -34,9 +34,13 @@ class CommandCSClear : public Command
ChannelMode *halfop = ModeManager::FindChannelModeByName(CMODE_HALFOP);
ChannelMode *voice = ModeManager::FindChannelModeByName(CMODE_VOICE);
+ if (c)
+ // XXX
+ Log(LOG_COMMAND, u, this, ci) << what;
+
if (!c)
notice_lang(Config->s_ChanServ, u, CHAN_X_NOT_IN_USE, chan.c_str());
- else if (!u || !check_access(u, ci, CA_CLEAR))
+ else if (!check_access(u, ci, CA_CLEAR))
notice_lang(Config->s_ChanServ, u, ACCESS_DENIED);
else if (what.equals_ci("bans"))
{