1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 20:46:39 +02:00

Backport of bugfix for bug #1025 from SVN r2148, the message for "no such entry" should show whatever was passed in to the command, not -1 every time.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2152 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
cyberbotx
2009-03-09 23:29:35 +00:00
parent 9bb905229d
commit 3ba4d4e97d
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -307,6 +307,7 @@ int do_access(User * u)
if (perm) {
notice_lang(s_ChanServ, u, PERMISSION_DENIED);
} else if (count == 1) {
last = atoi(nick);
notice_lang(s_ChanServ, u, CHAN_ACCESS_NO_SUCH_ENTRY,
last, ci->name);
} else {
+1
View File
@@ -374,6 +374,7 @@ int do_xop(User * u, char *xname, int xlev, int *xmsgs)
if (perm) {
notice_lang(s_ChanServ, u, PERMISSION_DENIED);
} else if (count == 1) {
last = atoi(nick);
notice_lang(s_ChanServ, u, xmsgs[5], last, ci->name);
} else {
notice_lang(s_ChanServ, u, xmsgs[7], ci->name);