diff options
author | Adam <Adam@anope.org> | 2010-08-27 20:56:28 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-08-27 20:56:28 -0400 |
commit | c2ddecc2b1dbc9d055166bdf296da2e4536f74f6 (patch) | |
tree | 9b98582630a2debab628e23d4d796885f50ada74 /modules/core/cs_clear.cpp | |
parent | 73fb94c55344b6ad788c925bf13325236402891f (diff) |
Added a new logging system
Diffstat (limited to 'modules/core/cs_clear.cpp')
-rw-r--r-- | modules/core/cs_clear.cpp | 6 |
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")) { |