1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 08:56:39 +02:00

Backport of bugfix for bug #1030 from SVN r2179, patch from Adam, deleting from the channel access list now logs a message about the deleted items.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2180 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
cyberbotx
2009-03-22 01:31:20 +00:00
parent 7cc23d874f
commit 08c8a883ef
+9 -6
View File
@@ -314,13 +314,16 @@ int do_access(User * u)
notice_lang(s_ChanServ, u, CHAN_ACCESS_NO_MATCH,
ci->name);
}
} else if (deleted == 1) {
notice_lang(s_ChanServ, u, CHAN_ACCESS_DELETED_ONE,
} else {
alog("%s: %s!%s@%s (level %d) deleted access of user%s %s on %s",
s_ChanServ, u->nick, u->username, u->host, get_access(u, ci), (deleted == 1 ? "" : "s"), nick, chan);
if (deleted == 1)
notice_lang(s_ChanServ, u, CHAN_ACCESS_DELETED_ONE,
ci->name);
} else {
notice_lang(s_ChanServ, u, CHAN_ACCESS_DELETED_SEVERAL,
deleted, ci->name);
}
else
notice_lang(s_ChanServ, u, CHAN_ACCESS_DELETED_SEVERAL,
deleted, ci->name);
}
} else {
na = findnick(nick);
if (!na) {