mirror of
https://github.com/anope/anope.git
synced 2026-06-28 12:36:39 +02:00
Various compile fixes.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1982 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
+14
-10
@@ -20,9 +20,9 @@ void myMemoServHelp(User *u);
|
||||
class CommandMSSet : public Command
|
||||
{
|
||||
private:
|
||||
CommandReturn DoNotify(User *u, std::vector<std::string> ¶ms, MemoInfo &mi)
|
||||
CommandReturn DoNotify(User *u, std::vector<std::string> ¶ms, MemoInfo *mi)
|
||||
{
|
||||
const char *params = params[1].c_str();
|
||||
const char *param = params[1].c_str();
|
||||
|
||||
if (!stricmp(param, "ON"))
|
||||
{
|
||||
@@ -66,7 +66,7 @@ class CommandMSSet : public Command
|
||||
return MOD_CONT;
|
||||
}
|
||||
|
||||
CommandReturn DoLimit(User *u, std::vector<std::string> ¶ms)
|
||||
CommandReturn DoLimit(User *u, std::vector<std::string> ¶ms, MemoInfo *mi)
|
||||
{
|
||||
const char *p1 = params[1].c_str();
|
||||
const char *p2 = params.size() > 2 ? params[2].c_str() : NULL;
|
||||
@@ -236,13 +236,17 @@ class CommandMSSet : public Command
|
||||
|
||||
bool OnHelp(User *u, const std::string &subcommand)
|
||||
{
|
||||
// This needs to change XXX
|
||||
notice_lang(s_MemoServ, u, MEMO_HELP_SET);
|
||||
notice_lang(s_MemoServ, u, MEMO_HELP_SET_NOTIFY);
|
||||
notice_lang(s_MemoServ, u, MEMO_HELP_SET_LIMIT, MSMaxMemos);
|
||||
|
||||
if (is_services_oper(u))
|
||||
notice_lang(s_MemoServ, u, MEMO_SERVADMIN_HELP_SET_LIMIT, MSMaxMemos);
|
||||
if (subcommand.empty())
|
||||
notice_lang(s_MemoServ, u, MEMO_HELP_SET);
|
||||
else if (subcommand == "NOTIFY")
|
||||
notice_lang(s_MemoServ, u, MEMO_HELP_SET_NOTIFY);
|
||||
else if (subcommand == "LIMIT")
|
||||
{
|
||||
if (is_services_oper(u))
|
||||
notice_lang(s_MemoServ, u, MEMO_SERVADMIN_HELP_SET_LIMIT, MSMaxMemos);
|
||||
else
|
||||
notice_lang(s_MemoServ, u, MEMO_HELP_SET_LIMIT, MSMaxMemos);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ class CommandMSStaff : public Command
|
||||
{
|
||||
}
|
||||
|
||||
CommandReturn Execute(User *u, std::vecyor<std::string> ¶ms)
|
||||
CommandReturn Execute(User *u, std::vector<std::string> ¶ms)
|
||||
{
|
||||
NickCore *nc;
|
||||
int i, z = 0;
|
||||
|
||||
@@ -20,7 +20,7 @@ void myNickServHelp(User *u);
|
||||
class CommandNSAccess : public Command
|
||||
{
|
||||
private:
|
||||
CommandReturn DoServAdminList(User *u, std::vector<std::string> ¶ms)
|
||||
CommandReturn DoServAdminList(User *u, std::vector<std::string> ¶ms, NickAlias *na)
|
||||
{
|
||||
const char *mask = params.size() > 2 ? params[2].c_str() : NULL;
|
||||
char **access;
|
||||
@@ -55,7 +55,7 @@ class CommandNSAccess : public Command
|
||||
return MOD_CONT;
|
||||
}
|
||||
|
||||
CommandReturn DoAdd(User *u, std::vector<std::string> ¶ms, const char *mask)
|
||||
CommandReturn DoAdd(User *u, std::vector<std::string> ¶ms, NickAlias *na, const char *mask)
|
||||
{
|
||||
char **access;
|
||||
int i;
|
||||
@@ -89,7 +89,7 @@ class CommandNSAccess : public Command
|
||||
return MOD_CONT;
|
||||
}
|
||||
|
||||
CommandReturn DoDel(User *u, std::vector<std::string> ¶ms, const char *mask)
|
||||
CommandReturn DoDel(User *u, std::vector<std::string> ¶ms, NickAlias *na, const char *mask)
|
||||
{
|
||||
char **access;
|
||||
int i;
|
||||
@@ -127,7 +127,7 @@ class CommandNSAccess : public Command
|
||||
return MOD_CONT;
|
||||
}
|
||||
|
||||
CommandReturn DoList(User *u, std::vector<std::string> *params, const char *mask)
|
||||
CommandReturn DoList(User *u, std::vector<std::string> ¶ms, NickAlias *na, const char *mask)
|
||||
{
|
||||
char **access;
|
||||
int i;
|
||||
@@ -177,11 +177,11 @@ class CommandNSAccess : public Command
|
||||
else if (!nick_identified(u))
|
||||
notice_lang(s_NickServ, u, NICK_IDENTIFY_REQUIRED, s_NickServ);
|
||||
else if (!stricmp(cmd, "ADD"))
|
||||
return this->DoAdd(u, params, mask);
|
||||
return this->DoAdd(u, params, na, mask);
|
||||
else if (!stricmp(cmd, "DEL"))
|
||||
return this->DoDel(u, params, mask);
|
||||
return this->DoDel(u, params, na, mask);
|
||||
else if (!stricmp(cmd, "LIST"))
|
||||
return thus->DoList(u, params, mask);
|
||||
return this->DoList(u, params, na, mask);
|
||||
else
|
||||
this->OnSyntaxError(u);
|
||||
return MOD_CONT;
|
||||
|
||||
@@ -138,6 +138,8 @@ class CommandNSAList : public Command
|
||||
notice_lang(s_NickServ, u, NICK_SERVADMIN_HELP_ALIST);
|
||||
else
|
||||
notice_lang(s_NickServ, u, NICK_HELP_ALIST);
|
||||
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ class CommandNSForbid : public Command
|
||||
{
|
||||
NickAlias *na;
|
||||
const char *nick = params[0].c_str();
|
||||
const char *reason = params.size() > 1 ? params[1].c_str();
|
||||
const char *reason = params.size() > 1 ? params[1].c_str() : NULL;
|
||||
|
||||
/* Assumes that permission checking has already been done. */
|
||||
if (ForceForbidReason && !reason) {
|
||||
|
||||
Reference in New Issue
Block a user