diff options
author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-03-09 02:41:13 +0000 |
---|---|---|
committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-03-09 02:41:13 +0000 |
commit | 4184b7df4494a2f343038c95c7df09d18b4bcdd8 (patch) | |
tree | 08c26b78b15378aa403d88f1fed81d8ab18a10de | |
parent | 4ddc1cebd1b29b76ea78ee6c080ceebe9d83a513 (diff) |
Fix bug #1025, the message for "no such entry" should show whatever was number passed in to the command, not -1 every time.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2148 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r-- | src/core/cs_access.c | 1 | ||||
-rw-r--r-- | src/core/cs_xop.c | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/core/cs_access.c b/src/core/cs_access.c index 1d7264314..9812ac201 100644 --- a/src/core/cs_access.c +++ b/src/core/cs_access.c @@ -246,6 +246,7 @@ class CommandCSAccess : public Command 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 b80ca5af6..6f2c302e8 100644 --- a/src/core/cs_xop.c +++ b/src/core/cs_xop.c @@ -245,7 +245,10 @@ class XOPBase : public Command if (perm) notice_lang(s_ChanServ, u, PERMISSION_DENIED); else if (count == 1) + { + last = atoi(nick); notice_lang(s_ChanServ, u, messages[XOP_NO_SUCH_ENTRY], last, ci->name); + } else notice_lang(s_ChanServ, u, messages[XOP_NO_MATCH], ci->name); } |