1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 01:43:14 +02:00

Log deleting and clearing XOP access lists

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2837 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Adam-
2010-03-24 21:24:22 +00:00
parent 766fe138e4
commit ac90a6935a
2 changed files with 7 additions and 1 deletions
+5
View File
@@ -374,8 +374,10 @@ int do_xop(User * u, char *xname, int xlev, int *xmsgs)
notice_lang(s_ChanServ, u, xmsgs[7], ci->name);
}
} else if (deleted == 1) {
alog("%s: %s!%s@%s (level %d) deleted access of user %s on %s", s_ChanServ, u->nick, u->username, u->host, get_access(u, ci), nick, ci->name);
notice_lang(s_ChanServ, u, xmsgs[9], ci->name);
} else {
alog("%s: %s!%s@%s (level %d) deleted access of users %s on %s", s_ChanServ, u->nick, u->username, u->host, get_access(u, ci), nick, ci->name);
notice_lang(s_ChanServ, u, xmsgs[10], deleted, ci->name);
}
} else {
@@ -400,6 +402,7 @@ int do_xop(User * u, char *xname, int xlev, int *xmsgs)
deleted = 0;
notice_lang(s_ChanServ, u, PERMISSION_DENIED);
} else {
alog("%s: %s!%s@%s (level %d) deleted access of %s on %s", s_ChanServ, u->nick, u->username, u->host, get_access(u, ci), access->nc->display, ci->name);
notice_lang(s_ChanServ, u, xmsgs[8], access->nc->display,
ci->name);
access->nc = NULL;
@@ -464,6 +467,8 @@ int do_xop(User * u, char *xname, int xlev, int *xmsgs)
CleanAccess(ci);
alog("%s: %s!%s@%s cleared the %s list of %s", s_ChanServ, u->nick, u->username, u->host, xname, ci->name);
send_event(EVENT_ACCESS_CLEAR, 2, ci->name, u->nick);
notice_lang(s_ChanServ, u, xmsgs[13], ci->name);
+2 -1
View File
@@ -9,10 +9,11 @@ VERSION_MAJOR="1"
VERSION_MINOR="8"
VERSION_PATCH="3"
VERSION_EXTRA="-svn"
VERSION_BUILD="2836"
VERSION_BUILD="2837"
# $Log$ # Changes since 1.8.3 Release
#Revision 2837 - Log deleting and clearing XOP access lists
#Revision 2836 - Document usage of the -protocoldebug option in services help
#Revision 2834 - Removed some unused functions from extern.h and changed docs/IRCD to not tell lies
#Revision 2821 - Fixed bug #1143 - Fixed a blind sprintf in sighandler that would write an error message to unallocated memory