mirror of
https://github.com/anope/anope.git
synced 2026-07-02 11:26:38 +02:00
Made Command::Execute's params const
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2644 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -74,7 +74,7 @@ class CommandHSRequest : public Command
|
||||
{
|
||||
}
|
||||
|
||||
CommandReturn Execute(User *u, std::vector<ci::string> ¶ms)
|
||||
CommandReturn Execute(User *u, const std::vector<ci::string> ¶ms)
|
||||
{
|
||||
char *nick;
|
||||
const char *rawhostmask = params[0].c_str();
|
||||
@@ -206,7 +206,7 @@ class CommandHSActivate : public Command
|
||||
{
|
||||
}
|
||||
|
||||
CommandReturn Execute(User *u, std::vector<ci::string> ¶ms)
|
||||
CommandReturn Execute(User *u, const std::vector<ci::string> ¶ms)
|
||||
{
|
||||
if (!u->nc->HasPriv("hostserv/set"))
|
||||
{
|
||||
@@ -271,7 +271,7 @@ class CommandHSReject : public Command
|
||||
{
|
||||
}
|
||||
|
||||
CommandReturn Execute(User *u, std::vector<ci::string> ¶ms)
|
||||
CommandReturn Execute(User *u, const std::vector<ci::string> ¶ms)
|
||||
{
|
||||
if (!u->nc->HasPriv("hostserv/set"))
|
||||
{
|
||||
@@ -383,7 +383,7 @@ class CommandHSWaiting : public HSListBase
|
||||
{
|
||||
}
|
||||
|
||||
CommandReturn Execute(User *u, std::vector<ci::string> ¶ms)
|
||||
CommandReturn Execute(User *u, const std::vector<ci::string> ¶ms)
|
||||
{
|
||||
return this->DoList(u);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user