diff options
author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-03-09 23:29:35 +0000 |
---|---|---|
committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-03-09 23:29:35 +0000 |
commit | 3ba4d4e97d60cf931d84b6657d7a25d0f5cda39c (patch) | |
tree | d58232ba964e15bfd53bfc3a7fe95788f100bda7 | |
parent | 9bb905229d832827b585e589bfcd99625be313f2 (diff) |
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
-rw-r--r-- | src/core/cs_access.c | 1 | ||||
-rw-r--r-- | src/core/cs_xop.c | 1 |
2 files changed, 2 insertions, 0 deletions
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); |