From d049bf0d8f0f0e219a22e3dd1d2ad72fd85f1a08 Mon Sep 17 00:00:00 2001 From: phil-lavin Date: Wed, 12 May 2010 18:13:34 +0000 Subject: 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 --- src/core/ns_access.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/core/ns_access.c') diff --git a/src/core/ns_access.c b/src/core/ns_access.c index b76a85dd6..25296cf8b 100644 --- a/src/core/ns_access.c +++ b/src/core/ns_access.c @@ -140,6 +140,8 @@ int do_access(User * u) na->nc->access = srealloc(na->nc->access, sizeof(char *) * na->nc->accesscount); na->nc->access[na->nc->accesscount - 1] = sstrdup(mask); + alog("%s: %s!%s@%s added %s to their access list", + s_NickServ, u->nick, u->username, u->host, mask); notice_lang(s_NickServ, u, NICK_ACCESS_ADDED, mask); } else if (stricmp(cmd, "DEL") == 0) { @@ -153,7 +155,8 @@ int do_access(User * u) notice_lang(s_NickServ, u, NICK_ACCESS_NOT_FOUND, mask); return MOD_CONT; } - + alog("%s: %s!%s@%s deleted %s from their access list", + s_NickServ, u->nick, u->username, u->host, mask); notice_lang(s_NickServ, u, NICK_ACCESS_DELETED, *access); free(*access); na->nc->accesscount--; -- cgit