From 3ba4d4e97d60cf931d84b6657d7a25d0f5cda39c Mon Sep 17 00:00:00 2001 From: cyberbotx Date: Mon, 9 Mar 2009 23:29:35 +0000 Subject: [PATCH] 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 --- src/core/cs_access.c | 1 + src/core/cs_xop.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/core/cs_access.c b/src/core/cs_access.c index a06051c7a..e663c83ba 100644 --- a/src/core/cs_access.c +++ b/src/core/cs_access.c @@ -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 { diff --git a/src/core/cs_xop.c b/src/core/cs_xop.c index eb226c1bd..539bc6fcb 100644 --- a/src/core/cs_xop.c +++ b/src/core/cs_xop.c @@ -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);