summaryrefslogtreecommitdiff
path: root/src/messages.c
diff options
context:
space:
mode:
authorphil-lavin <phil-lavin@5417fbe8-f217-4b02-8779-1006273d7864>2010-05-12 18:13:34 +0000
committerphil-lavin <phil-lavin@5417fbe8-f217-4b02-8779-1006273d7864>2010-05-12 18:13:34 +0000
commitd049bf0d8f0f0e219a22e3dd1d2ad72fd85f1a08 (patch)
tree77bff603160d74237fb662c7e2023993cd887e0e /src/messages.c
parenta53cbd82cc2499c4d0f7e84ec50e6b07a7cca2c7 (diff)
Added a tonne of alog()s to log all stateful commands
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2952 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/messages.c')
-rw-r--r--src/messages.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/messages.c b/src/messages.c
index fbdf33978..1c98a8bcf 100644
--- a/src/messages.c
+++ b/src/messages.c
@@ -195,11 +195,13 @@ int m_privmsg(char *source, char *receiver, char *msg)
&& (stricmp(receiver, s_OperServAlias) == 0))) {
if (!is_oper(u) && OSOpersOnly) {
notice_lang(s_OperServ, u, ACCESS_DENIED);
- if (WallBadOS)
+ if (WallBadOS) {
anope_cmd_global(s_OperServ,
"Denied access to %s from %s!%s@%s (non-oper)",
s_OperServ, u->nick, u->username,
u->host);
+ alog("%s: %s (DENIED): %s", s_OperServ, u->nick, msg);
+ }
} else {
operserv(u, msg);
}