1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 18:43:12 +02:00

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
This commit is contained in:
cyberbotx
2009-03-09 02:41:13 +00:00
parent 4ddc1cebd1
commit 4184b7df44
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -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 {
+3
View File
@@ -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);
}