mirror of
https://github.com/anope/anope.git
synced 2026-07-02 18:13:12 +02:00
Fix modules to use the right type (CommandReturn, not CommandResult)
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1977 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -79,7 +79,7 @@ class CommandHSRequest : public Command
|
||||
{
|
||||
}
|
||||
|
||||
CommandResult Execute(User *u, std::vector<std::string> ¶ms)
|
||||
CommandReturn Execute(User *u, std::vector<std::string> ¶ms)
|
||||
{
|
||||
char *nick;
|
||||
const char *rawhostmask = params[1].c_str();
|
||||
@@ -211,7 +211,7 @@ class CommandHSActivate : public Command
|
||||
{
|
||||
}
|
||||
|
||||
CommandResult Execute(User *u, std::vector<std::string> ¶ms)
|
||||
CommandReturn Execute(User *u, std::vector<std::string> ¶ms)
|
||||
{
|
||||
const char *nick = params[0].c_str();
|
||||
NickAlias *na;
|
||||
@@ -273,7 +273,7 @@ class CommandHSReject : public Command
|
||||
{
|
||||
}
|
||||
|
||||
CommandResult Execute(User *u, std::vector<std::string> ¶ms)
|
||||
CommandReturn Execute(User *u, std::vector<std::string> ¶ms)
|
||||
{
|
||||
const char *nick = params[0].c_str();
|
||||
const char *reason = params.size() > 1 ? params[1].c_str() : NULL;
|
||||
@@ -329,7 +329,7 @@ class CommandHSReject : public Command
|
||||
class CommandHSList : public Command
|
||||
{
|
||||
private:
|
||||
CommandResult DoList(User *u, std::vector<std::string> ¶ms)
|
||||
CommandReturn DoList(User *u, std::vector<std::string> ¶ms)
|
||||
{
|
||||
struct tm *tm;
|
||||
char buf[BUFSIZE];
|
||||
@@ -363,7 +363,7 @@ class CommandHSList : public Command
|
||||
{
|
||||
}
|
||||
|
||||
CommandResult Execute(User *u, std::vector<std::string> ¶ms)
|
||||
CommandReturn Execute(User *u, std::vector<std::string> ¶ms)
|
||||
{
|
||||
const char *key = params[0].c_str();
|
||||
|
||||
@@ -386,7 +386,7 @@ class CommandHSWaiting : public CommandHSList
|
||||
{
|
||||
}
|
||||
|
||||
CommandResult Execute(User *u, std::vector<std::string> ¶ms)
|
||||
CommandReturn Execute(User *u, std::vector<std::string> ¶ms)
|
||||
{
|
||||
return this->DoList(u, params);
|
||||
}
|
||||
@@ -411,7 +411,7 @@ class CommandNSDrop : public Command
|
||||
{
|
||||
}
|
||||
|
||||
CommandResult Execute(User *u, std::vector<std::string> ¶ms)
|
||||
CommandReturn Execute(User *u, std::vector<std::string> ¶ms)
|
||||
{
|
||||
HostCore *tmp;
|
||||
bool found = false;
|
||||
|
||||
Reference in New Issue
Block a user