1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 05:26:37 +02:00

Made the help command description code more sane

This commit is contained in:
Adam
2011-02-11 03:12:39 -05:00
parent 7bdf592f7e
commit 2529ff6dae
148 changed files with 215 additions and 939 deletions
+6
View File
@@ -79,6 +79,8 @@ struct CoreExport CommandSource
*/
class CoreExport Command : public Flags<CommandFlag>
{
Anope::string desc;
public:
/* Maximum paramaters accepted by this command */
size_t MaxParams;
@@ -104,6 +106,10 @@ class CoreExport Command : public Flags<CommandFlag>
virtual ~Command();
protected:
void SetDesc(const Anope::string &d);
public:
/** Execute this command.
* @param source The source
* @param params Command parameters
+1 -1
View File
@@ -156,7 +156,7 @@ class CoreExport User : public Extensible
* @param ... any number of parameters
*/
void SendMessage(BotInfo *source, const char *fmt, ...);
virtual void SendMessage(BotInfo *source, const Anope::string &msg);
virtual void SendMessage(BotInfo *source, Anope::string msg);
/** Collide a nick
* See the comment in users.cpp
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandBSAct : public Command
public:
CommandBSAct() : Command("ACT", 2, 2)
{
this->SetDesc("Makes the bot do the equivalent of a \"/me\" command");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -70,11 +71,6 @@ class CommandBSAct : public Command
"on the given channel using the given text."));
return true;
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" ACT Makes the bot do the equivalent of a \"/me\" command"));
}
};
class BSAct : public Module
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandBSAssign : public Command
public:
CommandBSAssign() : Command("ASSIGN", 2, 2)
{
this->SetDesc("Assigns a bot to a channel");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -80,11 +81,6 @@ class CommandBSAssign : public Command
{
SyntaxError(source, "ASSIGN", _("ASSIGN \037chan\037 \037nick\037"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" ASSIGN Assigns a bot to a channel"));
}
};
class BSAssign : public Module
+1 -5
View File
@@ -227,6 +227,7 @@ class CommandBSBadwords : public Command
public:
CommandBSBadwords() : Command("BADWORDS", 2, 3)
{
this->SetDesc("Maintains bad words list");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -311,11 +312,6 @@ class CommandBSBadwords : public Command
{
SyntaxError(source, "BADWORDS", _("BADWORDS \037channel\037 {ADD|DEL|LIST|CLEAR} [\037word\037 | \037entry-list\037] [SINGLE|START|END]"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" BADWORDS Maintains bad words list"));
}
};
class BSBadwords : public Module
+1 -5
View File
@@ -304,6 +304,7 @@ class CommandBSBot : public Command
CommandBSBot() : Command("BOT", 1, 6)
{
this->SetFlag(CFLAG_STRIP_CHANNEL);
this->SetDesc("Maintains network bot list");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -410,11 +411,6 @@ class CommandBSBot : public Command
"\002BOT CHANGE \037oldnick\037 \037newnick\037 [\037user\037 [\037host\037 [\037real\037]]]\002\n"
"\002BOT DEL \037nick\037\002"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" BOT Maintains network bot list"));
}
};
class BSBot : public Module
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandBSBotList : public Command
public:
CommandBSBotList() : Command("BOTLIST", 0, 0)
{
this->SetDesc("Lists available bots");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -70,11 +71,6 @@ class CommandBSBotList : public Command
"Lists all available bots on this network."));
return true;
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" BOTLIST Lists available bots"));
}
};
class BSBotList : public Module
+1 -5
View File
@@ -43,6 +43,7 @@ class CommandBSInfo : public Command
CommandBSInfo() : Command("INFO", 1, 1)
{
this->SetFlag(CFLAG_STRIP_CHANNEL);
this->SetDesc("Allows you to see BotServ information about a channel or a bot");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -234,11 +235,6 @@ class CommandBSInfo : public Command
{
SyntaxError(source, "INFO", _("INFO {\037chan\037 | \037nick\037}"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" INFO Allows you to see BotServ information about a channel or a bot"));
}
};
class BSInfo : public Module
+1 -5
View File
@@ -19,6 +19,7 @@ class CommandBSKick : public Command
public:
CommandBSKick() : Command("KICK", 3, 6)
{
this->SetDesc("Configures kickers");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -574,11 +575,6 @@ class CommandBSKick : public Command
{
SyntaxError(source, "KICK", _("KICK \037channel\037 \037option\037 {\037ON|\037} [\037settings\037]"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" KICK Configures kickers"));
}
};
class BSKick : public Module
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandBSSay : public Command
public:
CommandBSSay() : Command("SAY", 2, 2)
{
this->SetDesc("Makes the bot say the given text on the given channel");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -72,11 +73,6 @@ class CommandBSSay : public Command
{
SyntaxError(source, "SAY", _("SAY \037channel\037 \037text\037"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" SAY Makes the bot say the given text on the given channel"));
}
};
class BSSay : public Module
+1 -5
View File
@@ -19,6 +19,7 @@ class CommandBSSet : public Command
CommandBSSet() : Command("SET", 3, 3)
{
this->SetFlag(CFLAG_STRIP_CHANNEL);
this->SetDesc("Configures bot options");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -295,11 +296,6 @@ class CommandBSSet : public Command
{
SyntaxError(source, "SET", _("SET \037(channel | bot)\037 \037option\037 \037settings\037"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" SET Configures bot options"));
}
};
class BSSet : public Module
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandBSUnassign : public Command
public:
CommandBSUnassign() : Command("UNASSIGN", 1, 1)
{
this->SetDesc("Unassigns a bot from a channel");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -62,11 +63,6 @@ class CommandBSUnassign : public Command
{
SyntaxError(source, "UNASSIGN", _("UNASSIGN \037chan\037"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" UNASSIGN Unassigns a bot from a channel"));
}
};
class BSUnassign : public Module
+2 -6
View File
@@ -393,6 +393,7 @@ class CommandCSAccess : public Command
public:
CommandCSAccess() : Command("ACCESS", 2, 4)
{
this->SetDesc("Modify the list of privileged users");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -668,6 +669,7 @@ class CommandCSLevels : public Command
public:
CommandCSLevels() : Command("LEVELS", 2, 4)
{
this->SetDesc("Redefine the meanings of access levels");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -752,12 +754,6 @@ class CommandCSLevels : public Command
{
SyntaxError(source, "LEVELS", _("LEVELS \037channel\037 {SET | DIS[ABLE] | LIST | RESET} [\037item\037 [\037level\037]]"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" ACCESS Modify the list of privileged users"));
source.Reply(_(" LEVELS Redefine the meanings of access levels"));
}
};
class CSAccess : public Module
+1 -5
View File
@@ -475,6 +475,7 @@ class CommandCSAKick : public Command
public:
CommandCSAKick() : Command("AKICK", 2, 4)
{
this->SetDesc("Maintain the AutoKick list");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -558,11 +559,6 @@ class CommandCSAKick : public Command
{
SyntaxError(source, "AKICK", _("AKICK \037channel\037 {ADD | DEL | LIST | VIEW | ENFORCE | CLEAR} [\037nick-or-usermask\037] [\037reason\037]"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" AKICK Maintain the AutoKick list"));
}
};
class CSAKick : public Module
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandCSBan : public Command
public:
CommandCSBan(const Anope::string &cname) : Command("BAN", 2, 3)
{
this->SetDesc("Bans a selected nick on a channel");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -89,11 +90,6 @@ class CommandCSBan : public Command
{
SyntaxError(source, "BAN", _("BAN \037#channel\037 \037nick\037 [\037reason\037]"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" BAN Bans a selected nick on a channel"));
}
};
class CSBan : public Module
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandCSClearUsers : public Command
public:
CommandCSClearUsers() : Command("CLEARUSERS", 1, 1)
{
this->SetDesc("Tells ChanServ to clear (kick) all users on a channel");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -64,11 +65,6 @@ class CommandCSClearUsers : public Command
{
SyntaxError(source, "CLEAR", _("CLEARUSERS \037channel\037"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" CLEARUSERS Tells ChanServ to clear (kick) all users on a channel"));
}
};
class CSClearUsers : public Module
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandCSClone : public Command
public:
CommandCSClone() : Command("CLONE", 2, 3)
{
this->SetDesc("Copy all settings from one channel to another");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -164,11 +165,6 @@ public:
{
SyntaxError(source, "CLONE", _("CLONE \037channel\037 \037target\037"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" CLONE Copy all settings from one channel to another"));
}
};
class CSClone : public Module
+1 -5
View File
@@ -20,6 +20,7 @@ class CommandCSDrop : public Command
{
this->SetFlag(CFLAG_ALLOW_FORBIDDEN);
this->SetFlag(CFLAG_ALLOW_SUSPENDED);
this->SetDesc("Cancel the registration of a channel");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -99,11 +100,6 @@ class CommandCSDrop : public Command
{
SyntaxError(source, "DROP", _("DROP \037channel\037"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" DROP Cancel the registration of a channel"));
}
};
class CSDrop : public Module
+1 -5
View File
@@ -19,6 +19,7 @@ class CommandCSForbid : public Command
CommandCSForbid() : Command("FORBID", 1, 2, "chanserv/forbid")
{
this->SetFlag(CFLAG_ALLOW_UNREGISTEREDCHANNEL);
this->SetDesc("Prevent a channel from being used");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -110,11 +111,6 @@ class CommandCSForbid : public Command
{
SyntaxError(source, "FORBID", _("FORBID \037channel\037 [\037reason\037]"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" FORBID Prevent a channel from being used"));
}
};
class CSForbid : public Module
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandCSGetKey : public Command
public:
CommandCSGetKey() : Command("GETKEY", 1, 1)
{
this->SetDesc("Returns the key of the given channel");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -59,11 +60,6 @@ class CommandCSGetKey : public Command
{
SyntaxError(source, "GETKEY", _("GETKEY \037channel\037"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" GETKEY Returns the key of the given channel"));
}
};
class CSGetKey : public Module
+1 -5
View File
@@ -32,6 +32,7 @@ class CommandCSInfo : public Command
this->SetFlag(CFLAG_ALLOW_UNREGISTERED);
this->SetFlag(CFLAG_ALLOW_SUSPENDED);
this->SetFlag(CFLAG_ALLOW_FORBIDDEN);
this->SetDesc("Lists information about the named registered channel");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -129,11 +130,6 @@ class CommandCSInfo : public Command
{
SyntaxError(source, "INFO", _("INFO \037channel\037"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" INFO Lists information about the named registered channel"));
}
};
class CSInfo : public Module
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandCSInvite : public Command
public:
CommandCSInvite() : Command("INVITE", 1, 3)
{
this->SetDesc("Tells ChanServ to invite you into a channel");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -83,11 +84,6 @@ class CommandCSInvite : public Command
{
SyntaxError(source, "INVITE", _("INVITE \037channel\037"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" INVITE Tells ChanServ to invite you into a channel"));
}
};
class CSInvite : public Module
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandCSKick : public Command
public:
CommandCSKick() : Command("KICK", 2, 3)
{
this->SetDesc("Kicks a selected nick from a channel");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -75,11 +76,6 @@ class CommandCSKick : public Command
{
SyntaxError(source, "KICK", _("KICK \037#channel\037 \037nick\037 [\037reason\037]"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" KICK Kicks a selected nick from a channel"));
}
};
class CSKick : public Module
+2 -6
View File
@@ -16,10 +16,11 @@
class CommandCSList : public Command
{
public:
public:
CommandCSList() : Command("LIST", 1, 2)
{
this->SetFlag(CFLAG_STRIP_CHANNEL);
this->SetDesc("Lists all registered channels matching the given pattern");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -134,11 +135,6 @@ public:
{
SyntaxError(source, "LIST", LanguageString::NICK_LIST_SYNTAX);
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" LIST Lists all registered channels matching the given pattern"));
}
};
class CSList : public Module
+1 -5
View File
@@ -255,6 +255,7 @@ class CommandCSMode : public Command
public:
CommandCSMode() : Command("MODE", 3, 4)
{
this->SetDesc("Control modes and mode locks on a channel");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -306,11 +307,6 @@ class CommandCSMode : public Command
{
SyntaxError(source, "MODE", _("MODE \037channel\037 {LOCK|SET} [\037modes\037 | {ADD|DEL|LIST} [\037what\037]]"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" MODE Control modes and mode locks on a channel"));
}
};
class CSMode : public Module
+10 -50
View File
@@ -90,6 +90,7 @@ class CommandCSOp : public CommandModeBase
public:
CommandCSOp() : CommandModeBase("OP")
{
this->SetDesc("Gives Op status to a selected nick on a channel");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -116,11 +117,6 @@ class CommandCSOp : public CommandModeBase
{
SyntaxError(source, "OP", _("OP [\037#channel\037] [\037nick\037]\002"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" OP Gives Op status to a selected nick on a channel"));
}
};
class CommandCSDeOp : public CommandModeBase
@@ -128,6 +124,7 @@ class CommandCSDeOp : public CommandModeBase
public:
CommandCSDeOp() : CommandModeBase("DEOP")
{
this->SetDesc("Deops a selected nick on a channel");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -154,11 +151,6 @@ class CommandCSDeOp : public CommandModeBase
{
SyntaxError(source, "DEOP", _("DEOP [\037#channel\037] [\037nick\037]\002"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" DEOP Deops a selected nick on a channel"));
}
};
class CommandCSVoice : public CommandModeBase
@@ -166,6 +158,7 @@ class CommandCSVoice : public CommandModeBase
public:
CommandCSVoice() : CommandModeBase("VOICE")
{
this->SetDesc("Voices a selected nick on a channel");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -193,11 +186,6 @@ class CommandCSVoice : public CommandModeBase
{
SyntaxError(source, "VOICE", _("VOICE [\037#channel\037] [\037nick\037]\002"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" VOICE Voices a selected nick on a channel"));
}
};
class CommandCSDeVoice : public CommandModeBase
@@ -205,6 +193,7 @@ class CommandCSDeVoice : public CommandModeBase
public:
CommandCSDeVoice() : CommandModeBase("DEVOICE")
{
this->SetDesc("Devoices a selected nick on a channel");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -232,11 +221,6 @@ class CommandCSDeVoice : public CommandModeBase
{
SyntaxError(source, "DEVOICE", _("DEVOICE [\037#channel\037] [\037nick\037]\002"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" DEVOICE Devoices a selected nick on a channel"));
}
};
class CommandCSHalfOp : public CommandModeBase
@@ -244,6 +228,7 @@ class CommandCSHalfOp : public CommandModeBase
public:
CommandCSHalfOp() : CommandModeBase("HALFOP")
{
this->SetDesc("Halfops a selected nick on a channel");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -273,11 +258,6 @@ class CommandCSHalfOp : public CommandModeBase
{
SyntaxError(source, "HALFOP", _("HALFOP [\037#channel\037] [\037nick\037]\002"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" HALFOP Halfops a selected nick on a channel"));
}
};
class CommandCSDeHalfOp : public CommandModeBase
@@ -285,6 +265,7 @@ class CommandCSDeHalfOp : public CommandModeBase
public:
CommandCSDeHalfOp() : CommandModeBase("DEHALFOP")
{
this->SetDesc("Dehalfops a selected nick on a channel");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -315,11 +296,6 @@ class CommandCSDeHalfOp : public CommandModeBase
{
SyntaxError(source, "DEHALFOP", _("DEHALFOP [\037#channel\037] [\037nick\037]\002"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" DEHALFOP Dehalfops a selected nick on a channel"));
}
};
class CommandCSProtect : public CommandModeBase
@@ -327,6 +303,7 @@ class CommandCSProtect : public CommandModeBase
public:
CommandCSProtect() : CommandModeBase("PROTECT")
{
this->SetDesc("Protects a selected nick on a channel");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -356,11 +333,6 @@ class CommandCSProtect : public CommandModeBase
{
SyntaxError(source, "PROTECT", _("PROTECT [\037#channel\037] [\037nick\037]\002"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" PROTECT Protects a selected nick on a channel"));
}
};
class CommandCSDeProtect : public CommandModeBase
@@ -368,6 +340,7 @@ class CommandCSDeProtect : public CommandModeBase
public:
CommandCSDeProtect() : CommandModeBase("DEPROTECT")
{
this->SetDesc("Deprotects a selected nick on a channel");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -396,11 +369,6 @@ class CommandCSDeProtect : public CommandModeBase
{
SyntaxError(source, "DEPROTECT", _("DEROTECT [\037#channel\037] [\037nick\037]\002"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" DEPROTECT Deprotects a selected nick on a channel"));
}
};
class CommandCSOwner : public CommandModeBase
@@ -408,6 +376,7 @@ class CommandCSOwner : public CommandModeBase
public:
CommandCSOwner() : CommandModeBase("OWNER")
{
this->SetDesc("Gives you owner status on channel");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -436,11 +405,6 @@ class CommandCSOwner : public CommandModeBase
{
SyntaxError(source, "OWNER", _("OWNER [\037#channel\037] [\037nick\037]\002"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" OWNER Gives you owner status on channel"));
}
};
class CommandCSDeOwner : public CommandModeBase
@@ -448,6 +412,7 @@ class CommandCSDeOwner : public CommandModeBase
public:
CommandCSDeOwner() : CommandModeBase("DEOWNER")
{
this->SetDesc("Removes your owner status on a channel");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -476,11 +441,6 @@ class CommandCSDeOwner : public CommandModeBase
{
SyntaxError(source, "DEOWNER", _("DEOWNER [\037#channel\037] [\037nick\037]\002"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" DEOWNER Removes your owner status on a channel"));
}
};
class CSModes : public Module
+3 -7
View File
@@ -19,12 +19,13 @@ class CommandCSRegister : public Command
CommandCSRegister() : Command("REGISTER", 2, 2)
{
this->SetFlag(CFLAG_ALLOW_UNREGISTEREDCHANNEL);
this->SetDesc("Register a channel");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
{
const Anope::string &chan = params[0];
const Anope::string &desc = params[1];
const Anope::string &chdesc = params[1];
User *u = source.u;
ChannelInfo *ci = source.ci;
@@ -52,7 +53,7 @@ class CommandCSRegister : public Command
{
ci = new ChannelInfo(chan);
ci->founder = u->Account();
ci->desc = desc;
ci->desc = chdesc;
if (c && !c->topic.empty())
{
@@ -126,11 +127,6 @@ class CommandCSRegister : public Command
{
SyntaxError(source, "REGISTER", _("REGISTER \037channel\037 \037description\037"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" REGISTER Register a channel"));
}
};
class CSRegister : public Module
+1 -5
View File
@@ -21,6 +21,7 @@ class CommandCSSASet : public Command
public:
CommandCSSASet() : Command("SASET", 2, 3)
{
this->SetDesc("Forcefully set channel options and information");
}
~CommandCSSASet()
@@ -97,11 +98,6 @@ class CommandCSSASet : public Command
SyntaxError(source, "SASET", LanguageString::CHAN_SASET_SYNTAX);
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" SASET Forcefully set channel options and information"));
}
bool AddSubcommand(Module *creator, Command *c)
{
c->module = creator;
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandCSSASetNoexpire : public Command
public:
CommandCSSASetNoexpire() : Command("NOEXPIRE", 2, 2, "chanserv/saset/noexpire")
{
this->SetDesc("Prevent the channel from expiring");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -55,11 +56,6 @@ class CommandCSSASetNoexpire : public Command
{
SyntaxError(source, "SET NOEXPIRE", _("SET \037channel\037 NOEXPIRE {ON | OFF}"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" NOEXPIRE Prevent the channel from expiring"));
}
};
class CSSetNoexpire : public Module
+1 -5
View File
@@ -21,6 +21,7 @@ class CommandCSSet : public Command
public:
CommandCSSet() : Command("SET", 2, 3)
{
this->SetDesc("Set channel options and information");
}
~CommandCSSet()
@@ -101,11 +102,6 @@ class CommandCSSet : public Command
SyntaxError(source, "SET", LanguageString::CHAN_SET_SYNTAX);
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" SET Set channel options and information"));
}
bool AddSubcommand(Module *creator, Command *c)
{
c->module = creator;
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandCSSetBanType : public Command
public:
CommandCSSetBanType(const Anope::string &cpermission = "") : Command("BANTYPE", 2, 2, cpermission)
{
this->SetDesc("Set how Services make bans on the channel");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -60,11 +61,6 @@ class CommandCSSetBanType : public Command
// XXX
SyntaxError(source, "SET", LanguageString::CHAN_SET_SYNTAX);
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" BANTYPE Set how Services make bans on the channel"));
}
};
class CommandCSSASetBanType : public CommandCSSetBanType
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandCSSetDescription : public Command
public:
CommandCSSetDescription(const Anope::string &cpermission = "") : Command("DESC", 2, 2, cpermission)
{
this->SetDesc("Set the channel description");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -47,11 +48,6 @@ class CommandCSSetDescription : public Command
// XXX
SyntaxError(source, "SET", LanguageString::CHAN_SET_SYNTAX);
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" DESC Set the channel description"));
}
};
class CommandCSSASetDescription : public CommandCSSetDescription
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandCSSetFounder : public Command
public:
CommandCSSetFounder(const Anope::string &cpermission = "") : Command("FOUNDER", 2, 2, cpermission)
{
this->SetDesc("Set the founder of a channel");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -83,11 +84,6 @@ class CommandCSSetFounder : public Command
// XXX
SyntaxError(source, "SET", LanguageString::CHAN_SET_SYNTAX);
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" FOUNDER Set the founder of a channel"));
}
};
class CommandCSSASetFounder : public CommandCSSetFounder
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandCSSetKeepTopic : public Command
public:
CommandCSSetKeepTopic(const Anope::string &cpermission = "") : Command("KEEPTOPIC", 2, 2, cpermission)
{
this->SetDesc("Retain topic when channel is not in use");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -58,11 +59,6 @@ class CommandCSSetKeepTopic : public Command
{
SyntaxError(source, "SET KEEPTOPIC", _("SET \037channel\037 KEEPTOPIC {ON | OFF}"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" KEEPTOPIC Retain topic when channel is not in use"));
}
};
class CommandCSSASetKeepTopic : public CommandCSSetKeepTopic
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandCSSetOpNotice : public Command
public:
CommandCSSetOpNotice(const Anope::string &cpermission = "") : Command("OPNOTICE", 2, 2, cpermission)
{
this->SetDesc("Send a notice when OP/DEOP commands are used");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -57,11 +58,6 @@ class CommandCSSetOpNotice : public Command
{
SyntaxError(source, "SET OPNOTICE", _("SET \037channel\037 OPNOTICE {ON | OFF}"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" OPNOTICE Send a notice when OP/DEOP commands are used"));
}
};
class CommandCSSASetOpNotice : public CommandCSSetOpNotice
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandCSSetPeace : public Command
public:
CommandCSSetPeace(const Anope::string &cpermission = "") : Command("PEACE", 2, 2, cpermission)
{
this->SetDesc("Regulate the use of critical commands");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -57,11 +58,6 @@ class CommandCSSetPeace : public Command
{
SyntaxError(source, "SET PEACE", _("SET \037channel\037 PEACE {ON | OFF}"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" PEACE Regulate the use of critical commands"), "SET");
}
};
class CommandCSSASetPeace : public CommandCSSetPeace
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandCSSetPersist : public Command
public:
CommandCSSetPersist(const Anope::string &cpermission = "") : Command("PERSIST", 2, 2, cpermission)
{
this->SetDesc("Set the channel as permanent");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -129,11 +130,6 @@ class CommandCSSetPersist : public Command
{
SyntaxError(source, "SET PERSIST", _("SET \037channel\037 PERSIST {ON | OFF}"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" PERSIST Set the channel as permanent"));
}
};
class CommandCSSASetPersist : public CommandCSSetPersist
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandCSSetPrivate : public Command
public:
CommandCSSetPrivate(const Anope::string &cpermission = "") : Command("PRIVATE", 2, 2, cpermission)
{
this->SetDesc("Hide channel from LIST command");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -56,11 +57,6 @@ class CommandCSSetPrivate : public Command
{
SyntaxError(source, "SET PRIVATE", _("SET \037channel\037 PRIVATE {ON | OFF}"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" PRIVATE Hide channel from LIST command"));
}
};
class CommandCSSASetPrivate : public CommandCSSetPrivate
+1 -5
View File
@@ -17,6 +17,7 @@ class CommandCSSetRestricted : public Command
public:
CommandCSSetRestricted(const Anope::string &cpermission = "") : Command("RESTRICTED", 2, 2, cpermission)
{
this->SetDesc("Restrict access to the channel");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -59,11 +60,6 @@ class CommandCSSetRestricted : public Command
{
SyntaxError(source, "SET RESTRICTED", _("SET \037channel\037 RESTRICTED {ON | OFF}"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" RESTRICTED Restrict access to the channel"));
}
};
class CommandCSSASetRestricted : public CommandCSSetRestricted
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandCSSetSecure : public Command
public:
CommandCSSetSecure(const Anope::string &cpermission = "") : Command("SECURE", 2, 2, cpermission)
{
this->SetDesc("Activate " + ChanServ->nick + "'s security features");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -58,11 +59,6 @@ class CommandCSSetSecure : public Command
{
SyntaxError(source, "SET SECURE", _("SET \037channel\037 SECURE {ON | OFF}"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" SECURE Activate %s security features"), ChanServ->nick.c_str());
}
};
class CommandCSSASetSecure : public CommandCSSetSecure
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandCSSetSecureFounder : public Command
public:
CommandCSSetSecureFounder(const Anope::string &cpermission = "") : Command("SECUREFOUNDER", 2, 2, cpermission)
{
this->SetDesc("Stricter control of channel founder status");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -65,11 +66,6 @@ class CommandCSSetSecureFounder : public Command
{
SyntaxError(source, "SET SECUREFOUNDER", _("SET \037channel\037 SECUREFOUNDER {ON | OFF}"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" SECUREFOUNDER Stricter control of channel founder status"));
}
};
class CommandCSSASetSecureFounder : public CommandCSSetSecureFounder
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandCSSetSecureOps : public Command
public:
CommandCSSetSecureOps(const Anope::string &cpermission = "") : Command("SECUREOPS", 2, 2, cpermission)
{
this->SetDesc("Stricter control of chanop status");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -56,11 +57,6 @@ class CommandCSSetSecureOps : public Command
{
SyntaxError(source, "SET SECUREOPS", _("SET \037channel\037 SECUREOPS {ON | OFF}"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" SECUREOPS Stricter control of chanop status"));
}
};
class CommandCSSASetSecureOps : public CommandCSSetSecureOps
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandCSSetSignKick : public Command
public:
CommandCSSetSignKick(const Anope::string &cpermission = "") : Command("SIGNKICK", 2, 2, cpermission)
{
this->SetDesc("Sign kicks that are done with KICK command");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -71,11 +72,6 @@ class CommandCSSetSignKick : public Command
{
SyntaxError(source, "SET SIGNKICK", _("SET \037channel\037 SIGNKICK {ON | LEVEL | OFF}"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" SIGNKICK Sign kicks that are done with KICK command"));
}
};
class CommandCSSASetSignKick : public CommandCSSetSignKick
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandCSSetSuccessor : public Command
public:
CommandCSSetSuccessor(const Anope::string &cpermission = "") : Command("SUCCESSOR", 1, 2, cpermission)
{
this->SetDesc("Set the successor for a channel");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -90,11 +91,6 @@ class CommandCSSetSuccessor : public Command
// XXX
SyntaxError(source, "SET", LanguageString::CHAN_SET_SYNTAX);
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" SUCCESSOR Set the successor for a channel"));
}
};
class CommandCSSASetSuccessor : public CommandCSSetSuccessor
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandCSSetTopicLock : public Command
public:
CommandCSSetTopicLock(const Anope::string &cpermission = "") : Command("TOPICLOCK", 2, 2, cpermission)
{
this->SetDesc("Topic can only be changed with TOPIC");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -57,11 +58,6 @@ class CommandCSSetTopicLock : public Command
{
SyntaxError(source, "SET", _("SET \037channel\037 TOPICLOCK {ON | OFF}"));;
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" TOPICLOCK Topic can only be changed with TOPIC"));
}
};
class CommandCSSASetTopicLock : public CommandCSSetTopicLock
+1 -5
View File
@@ -19,6 +19,7 @@ class CommandCSSetXOP : public Command
public:
CommandCSSetXOP(const Anope::string &cpermission = "") : Command("XOP", 2, 2, cpermission)
{
this->SetDesc("Toggle the user privilege system");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -111,11 +112,6 @@ class CommandCSSetXOP : public Command
{
SyntaxError(source, "SET XOP", _("SET \037channel\037 XOP {ON | OFF}"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" XOP Toggle the user privilege system"));
}
};
class CommandCSSASetXOP : public CommandCSSetXOP
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandCSStatus : public Command
public:
CommandCSStatus() : Command("STATUS", 2, 2, "chanserv/status")
{
this->SetDesc("Returns the current access level of a user on a channel");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -53,11 +54,6 @@ class CommandCSStatus : public Command
{
SyntaxError(source, "STATUS", _("STATUS \037channel\037 \037item\037"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" STATUS Returns the current access level of a user on a channel"));
}
};
class CSStatus : public Module
+3 -13
View File
@@ -17,7 +17,8 @@ class CommandCSSuspend : public Command
{
public:
CommandCSSuspend() : Command("SUSPEND", 1, 2, "chanserv/suspend")
{
{
this->SetDesc("Prevent a channel from being used preserving channel data and settings");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -90,13 +91,6 @@ class CommandCSSuspend : public Command
{
SyntaxError(source, "SUSPEND", Config->ForceForbidReason ? _("SUSPEND \037channel\037 \037reason\037") : _("SUSPEND \037channel\037 \037freason\037"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" SUSPEND Prevent a channel from being used preserving\n"
" channel data and settings"));
}
};
class CommandCSUnSuspend : public Command
@@ -105,6 +99,7 @@ class CommandCSUnSuspend : public Command
CommandCSUnSuspend() : Command("UNSUSPEND", 1, 1, "chanserv/suspend")
{
this->SetFlag(CFLAG_ALLOW_SUSPENDED);
this->SetDesc("Releases a suspended channel");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -151,11 +146,6 @@ class CommandCSUnSuspend : public Command
{
SyntaxError(source, "UNSUSPEND", _("UNSUSPEND \037channel\037"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" UNSUSPEND Releases a suspended channel"));
}
};
class CSSuspend : public Module
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandCSTopic : public Command
public:
CommandCSTopic() : Command("TOPIC", 1, 2)
{
this->SetDesc("Manipulate the topic of the specified channel");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -65,11 +66,6 @@ class CommandCSTopic : public Command
{
SyntaxError(source, "TOPIC", _("TOPIC \037channel\037 [\037topic\037]"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" TOPIC Manipulate the topic of the specified channel"));
}
};
class CSTopic : public Module
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandCSUnban : public Command
public:
CommandCSUnban() : Command("UNBAN", 1, 2)
{
this->SetDesc("Remove all bans preventing a user from entering a channel");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -73,11 +74,6 @@ class CommandCSUnban : public Command
{
SyntaxError(source, "UNBAN", _("UNBAN \037channel\037 [\037nick\037]"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" UNBAN Remove all bans preventing a user from entering a channel"));
}
};
class CSUnban : public Module
+5 -28
View File
@@ -396,8 +396,6 @@ class XOPBase : public Command
virtual bool OnHelp(CommandSource &source, const Anope::string &subcommand) = 0;
virtual void OnSyntaxError(CommandSource &source, const Anope::string &subcommand) = 0;
virtual void OnServHelp(CommandSource &source) = 0;
};
class CommandCSQOP : public XOPBase
@@ -405,6 +403,7 @@ class CommandCSQOP : public XOPBase
public:
CommandCSQOP() : XOPBase("QOP")
{
this->SetDesc("Modify the list of QOP users");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -458,11 +457,6 @@ class CommandCSQOP : public XOPBase
{
SyntaxError(source, "QOP", _("QOP \037channel\037 {ADD|DEL|LIST|CLEAR} [\037nick\037 | \037entry-list\037]"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" QOP Modify the list of QOP users"));
}
};
class CommandCSAOP : public XOPBase
@@ -470,6 +464,7 @@ class CommandCSAOP : public XOPBase
public:
CommandCSAOP() : XOPBase("AOP")
{
this->SetDesc("Modify the list of AOP users");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -517,7 +512,6 @@ class CommandCSAOP : public XOPBase
"\002%R%s HELP ACCESS\002 for information about the access list,\n"
"and \002%R%s HELP SET XOP\002 to know how to toggle between \n"
"the access list and xOP list systems."), ChanServ->nick.c_str(), ChanServ->nick.c_str());
/* CHAN_HELP_HOP */
return true;
}
@@ -525,11 +519,6 @@ class CommandCSAOP : public XOPBase
{
SyntaxError(source, "AOP", _("AOP \037channel\037 {ADD|DEL|LIST|CLEAR} [\037nick\037 | \037entry-list\037]"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" AOP Modify the list of AOP users"));
}
};
class CommandCSHOP : public XOPBase
@@ -537,6 +526,7 @@ class CommandCSHOP : public XOPBase
public:
CommandCSHOP() : XOPBase("HOP")
{
this->SetDesc("Maintains the HOP (HalfOP) list for a channel");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -589,11 +579,6 @@ class CommandCSHOP : public XOPBase
{
SyntaxError(source, "HOP", _("HOP \037channel\037 {ADD|DEL|LIST|CLEAR} [\037nick\037 | \037entry-list\037]"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" HOP Maintains the HOP (HalfOP) list for a channel"));
}
};
class CommandCSSOP : public XOPBase
@@ -601,6 +586,7 @@ class CommandCSSOP : public XOPBase
public:
CommandCSSOP() : XOPBase("SOP")
{
this->SetDesc("Modify the list of SOP users");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -654,11 +640,6 @@ class CommandCSSOP : public XOPBase
{
SyntaxError(source, "SOP", _("SOP \037channel\037 {ADD|DEL|LIST|CLEAR} [\037nick\037 | \037entry-list\037]"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" SOP Modify the list of SOP users"));
}
};
class CommandCSVOP : public XOPBase
@@ -666,6 +647,7 @@ class CommandCSVOP : public XOPBase
public:
CommandCSVOP() : XOPBase("VOP")
{
this->SetDesc("Maintains the VOP (VOicePeople) list for a channel");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -718,11 +700,6 @@ class CommandCSVOP : public XOPBase
{
SyntaxError(source, "VOP", _("VOP \037channel\037 {ADD|DEL|LIST|CLEAR} [\037nick\037 | \037entry-list\037]"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" VOP Maintains the VOP (VOicePeople) list for a channel"));
}
};
class CSXOP : public Module
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandHSDel : public Command
public:
CommandHSDel() : Command("DEL", 1, 1, "hostserv/del")
{
this->SetDesc("Delete the vhost of another user");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -55,11 +56,6 @@ class CommandHSDel : public Command
{
SyntaxError(source, "DEL", _("DEL \002<nick>\002."));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" DEL Delete the vhost of another user"));
}
};
class HSDel : public Module
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandHSDelAll : public Command
public:
CommandHSDelAll() : Command("DELALL", 1, 1, "hostserv/del")
{
this->SetDesc("Delete the vhost for all nicks in a group");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -60,11 +61,6 @@ class CommandHSDelAll : public Command
{
SyntaxError(source, "DELALL", _("DELALL <nick>\002."));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" DELALL Delete the vhost for all nicks in a group"));
}
};
class HSDelAll : public Module
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandHSGroup : public Command
public:
CommandHSGroup() : Command("GROUP", 0, 0)
{
this->SetDesc("Syncs the vhost for all nicks in a group");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -47,11 +48,6 @@ class CommandHSGroup : public Command
"group."));
return true;
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" GROUP Syncs the vhost for all nicks in a group"));
}
};
class HSGroup : public Module
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandHSList : public Command
public:
CommandHSList() : Command("LIST", 0, 1, "hostserv/list")
{
this->SetDesc("Displays one or more vhost entries.");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -115,11 +116,6 @@ class CommandHSList : public Command
"number of items to display to a operator at any 1 time."));
return true;
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" LIST Displays one or more vhost entries."));
}
};
class HSList : public Module
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandHSOff : public Command
public:
CommandHSOff() : Command("OFF", 0, 0)
{
this->SetDesc("Deactivates your assigned vhost");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -45,11 +46,6 @@ class CommandHSOff : public Command
"on you will see your real IP address."));
return true;
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" OFF Deactivates your assigned vhost"));
}
};
class HSOff : public Module
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandHSOn : public Command
public:
CommandHSOn() : Command("ON", 0, 0)
{
this->SetDesc("Activates your assigned vhost");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -55,11 +56,6 @@ class CommandHSOn : public Command
"on you will see the vhost instead of your real IP address."));
return true;
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" ON Activates your assigned vhost"));
}
};
class HSOn : public Module
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandHSSet : public Command
public:
CommandHSSet() : Command("SET", 2, 2, "hostserv/set")
{
this->SetDesc("Set the vhost of another user");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -109,11 +110,6 @@ class CommandHSSet : public Command
{
SyntaxError(source, "SET", _("SET \002<nick>\002 \002<hostmask>\002."));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" SET Set the vhost of another user"));
}
};
class HSSet : public Module
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandHSSetAll : public Command
public:
CommandHSSetAll() : Command("SETALL", 2, 2, "hostserv/set")
{
this->SetDesc("Set the vhost for all nicks in a group");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -116,11 +117,6 @@ class CommandHSSetAll : public Command
{
SyntaxError(source, "SETALL", _("SETALL \002<nick>\002 \002<hostmask>\002."));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" SETALL Set the vhost for all nicks in a group"));
}
};
class HSSetAll : public Module
+1 -5
View File
@@ -20,6 +20,7 @@ class CommandMSCancel : public Command
public:
CommandMSCancel() : Command("CANCEL", 1, 1)
{
this->SetDesc("Cancel last memo you sent");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -67,11 +68,6 @@ class CommandMSCancel : public Command
{
SyntaxError(source, "CANCEL", _("CANCEL {\037nick\037 | \037channel\037}"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" CANCEL Cancel last memo you sent"));
}
};
class MSCancel : public Module
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandMSCheck : public Command
public:
CommandMSCheck() : Command("CHECK", 1, 1)
{
this->SetDesc("Checks if last memo to a nick was read");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -79,11 +80,6 @@ class CommandMSCheck : public Command
{
SyntaxError(source, "CHECK", _("CHECK \037nickname\037"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" CHECK Checks if last memo to a nick was read"));
}
};
class MSCheck : public Module
+1 -5
View File
@@ -43,6 +43,7 @@ class CommandMSDel : public Command
public:
CommandMSDel() : Command("DEL", 0, 2)
{
this->SetDesc("Delete a memo or memos");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -147,11 +148,6 @@ class CommandMSDel : public Command
{
SyntaxError(source, "DEL", _("DEL [\037channel\037] {\037num\037 | \037list\037 | ALL}"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" DEL Delete a memo or memos"));
}
};
class MSDel : public Module
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandMSIgnore : public Command
public:
CommandMSIgnore() : Command("IGNORE", 1, 3)
{
this->SetDesc("Manage your memo ignore list");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -98,11 +99,6 @@ class CommandMSIgnore : public Command
{
SyntaxError(source, "IGNORE", _("IGNORE [\037channel\037] {\002ADD|DEL|\002} [\037entry\037]"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" IGNORE Manage your memo ignore list"));
}
};
class MSIgnore : public Module
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandMSInfo : public Command
public:
CommandMSInfo() : Command("INFO", 0, 1)
{
this->SetDesc("Displays information about your memos");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -211,11 +212,6 @@ class CommandMSInfo : public Command
return true;
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" INFO Displays information about your memos"));
}
};
class MSInfo : public Module
+1 -5
View File
@@ -55,6 +55,7 @@ class CommandMSList : public Command
public:
CommandMSList() : Command("LIST", 0, 2)
{
this->SetDesc("List your memos");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -159,11 +160,6 @@ class CommandMSList : public Command
{
SyntaxError(source, "LIST", _("LIST [\037channel\037] [\037list\037 | NEW]"));
}
void OnServCommand(CommandSource &source)
{
source.Reply(_(" LIST List your memos"));
}
};
class MSList : public Module
+1 -5
View File
@@ -51,6 +51,7 @@ class CommandMSRead : public Command
public:
CommandMSRead() : Command("READ", 1, 2)
{
this->SetDesc("Read a memo or memos");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -144,11 +145,6 @@ class CommandMSRead : public Command
{
SyntaxError(source, "READ", _("READ [\037channel\037] {\037list\037 | LAST | NEW}"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" READ Read a memo or memos"));
}
};
class MSRead : public Module
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandMSRSend : public Command
public:
CommandMSRSend() : Command("RSEND", 2, 2)
{
this->SetDesc("Sends a memo and requests a read receipt");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -74,11 +75,6 @@ class CommandMSRSend : public Command
{
SyntaxError(source, "RSEND", _("RSEND {\037nick\037 | \037channel\037} \037memo-text\037"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" RSEND Sends a memo and requests a read receipt"));
}
};
class MSRSend : public Module
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandMSSend : public Command
public:
CommandMSSend() : Command("SEND", 2, 2)
{
this->SetDesc("Send a memo to a nick or channel");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -43,11 +44,6 @@ class CommandMSSend : public Command
{
SyntaxError(source, "SEND", LanguageString::MEMO_SEND_SYNTAX);
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" SEND Send a memo to a nick or channel"));
}
};
class MSSend : public Module
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandMSSendAll : public Command
public:
CommandMSSendAll() : Command("SENDALL", 1, 1, "memoserv/sendall")
{
this->SetDesc("Send a memo to all registered users");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -56,11 +57,6 @@ class CommandMSSendAll : public Command
{
SyntaxError(source, "SENDALL", _("SENDALL \037memo-text\037"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" SENDALL Send a memo to all registered users"));
}
};
class MSSendAll : public Module
+1 -5
View File
@@ -201,6 +201,7 @@ class CommandMSSet : public Command
public:
CommandMSSet() : Command("SET", 2, 5)
{
this->SetDesc("Set options related to memos");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -294,11 +295,6 @@ class CommandMSSet : public Command
{
SyntaxError(source, "SET", LanguageString::NICK_SET_SYNTAX);
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" SET Set options related to memos"));
}
};
class MSSet : public Module
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandMSStaff : public Command
public:
CommandMSStaff() : Command("STAFF", 1, 1, "memoserv/staff")
{
this->SetDesc("Send a memo to all opers/admins");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -54,11 +55,6 @@ class CommandMSStaff : public Command
{
SyntaxError(source, "STAFF", _("STAFF \037memo-text\037"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" STAFF Send a memo to all opers/admins"));
}
};
class MSStaff : public Module
+1 -5
View File
@@ -117,6 +117,7 @@ class CommandNSAccess : public Command
public:
CommandNSAccess() : Command("ACCESS", 1, 3)
{
this->SetDesc("Modify the list of authorized addresses");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -179,11 +180,6 @@ class CommandNSAccess : public Command
{
SyntaxError(source, "ACCESS", _("ACCESS {ADD | DEL | LIST} [\037mask\037]"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" ACCESS Modify the list of authorized addresses"));
}
};
class NSAccess : public Module
+1 -5
View File
@@ -73,6 +73,7 @@ class CommandNSAJoin : public Command
public:
CommandNSAJoin() : Command("AJOIN", 1, 3)
{
this->SetDesc("Manage your auto join list");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -104,11 +105,6 @@ class CommandNSAJoin : public Command
{
SyntaxError(source, "AJOIN", _("AJOIN {ADD | DEL | LIST} [\037channel\037] [\037key\037]"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" AJOIN Manage your auto join list"));
}
};
class NSAJoin : public Module
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandNSAList : public Command
public:
CommandNSAList() : Command("ALIST", 0, 2)
{
this->SetDesc("List channels you have access on");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -162,11 +163,6 @@ class CommandNSAList : public Command
return true;
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" ALIST List channels you have access on"));
}
};
class NSAList : public Module
+1 -5
View File
@@ -19,6 +19,7 @@ class CommandNSDrop : public Command
CommandNSDrop() : Command("DROP", 0, 1)
{
this->SetFlag(CFLAG_ALLOW_UNREGISTERED);
this->SetDesc("Cancel the registration of a nickname");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -146,11 +147,6 @@ class CommandNSDrop : public Command
return true;
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" DROP Cancel the registration of a nickname"));
}
};
class NSDrop : public Module
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandNSForbid : public Command
public:
CommandNSForbid() : Command("FORBID", 1, 2, "nickserv/forbid")
{
this->SetDesc("Prevents a nickname from being registered");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -99,11 +100,6 @@ class CommandNSForbid : public Command
{
SyntaxError(source, "FORBID", Config->ForceForbidReason ? _("FORBID \037nickname\037 \037reason\037") : _("FORBID \037nickname\037 [\037reason\037]"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" FORBID Prevents a nickname from being registered"));
}
};
class NSForbid : public Module
+1 -5
View File
@@ -22,6 +22,7 @@ class CommandNSGetEMail : public Command
public:
CommandNSGetEMail() : Command("GETEMAIL", 1, 1, "nickserv/getemail")
{
this->SetDesc("Matches and returns all users that registered using given email");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -66,11 +67,6 @@ class CommandNSGetEMail : public Command
{
SyntaxError(source, "GETMAIL", _("GETEMAIL \002user@email-host\002 No WildCards!!"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" GETEMAIL Matches and returns all users that registered using given email"));
}
};
class NSGetEMail : public Module
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandNSGetPass : public Command
public:
CommandNSGetPass() : Command("GETPASS", 1, 1, "nickserv/getpass")
{
this->SetDesc("Retrieve the password for a nickname");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -74,11 +75,6 @@ class CommandNSGetPass : public Command
{
SyntaxError(source, "GETPASS", _("GETPASS \037nickname\037"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" GETPASS Retrieve the password for a nickname"));
}
};
class NSGetPass : public Module
+1 -5
View File
@@ -19,6 +19,7 @@ class CommandNSGhost : public Command
CommandNSGhost() : Command("GHOST", 1, 2)
{
this->SetFlag(CFLAG_ALLOW_UNREGISTERED);
this->SetDesc("Disconnects a \"ghost\" IRC session using your nick");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -90,11 +91,6 @@ class CommandNSGhost : public Command
{
SyntaxError(source, "GHOST", _("GHOST \037nickname\037 [\037password\037]"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" GHOST Disconnects a \"ghost\" IRC session using your nick"));
}
};
class NSGhost : public Module
+3 -15
View File
@@ -19,6 +19,7 @@ class CommandNSGroup : public Command
CommandNSGroup() : Command("GROUP", 2, 2)
{
this->SetFlag(CFLAG_ALLOW_UNREGISTERED);
this->SetDesc("Join a group");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -173,11 +174,6 @@ class CommandNSGroup : public Command
{
SyntaxError(source, "GROUP", _("\037target\037 \037password\037"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" GROUP Join a group"));
}
};
class CommandNSUngroup : public Command
@@ -185,6 +181,7 @@ class CommandNSUngroup : public Command
public:
CommandNSUngroup() : Command("UNGROUP", 0, 1)
{
this->SetDesc("Remove a nick from a group");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -242,11 +239,6 @@ class CommandNSUngroup : public Command
"nick in your group."));
return true;
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" UNGROUP Remove a nick from a group"));
}
};
class CommandNSGList : public Command
@@ -254,6 +246,7 @@ class CommandNSGList : public Command
public:
CommandNSGList() : Command("GLIST", 0, 1)
{
this->SetDesc("Lists all nicknames in your group");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -300,11 +293,6 @@ class CommandNSGList : public Command
return true;
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" GLIST Lists all nicknames in your group"));
}
};
class NSGroup : public Module
+1 -5
View File
@@ -19,6 +19,7 @@ class CommandNSIdentify : public Command
CommandNSIdentify() : Command("IDENTIFY", 1, 2)
{
this->SetFlag(CFLAG_ALLOW_UNREGISTERED);
this->SetDesc("Identify yourself with your password");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -118,11 +119,6 @@ class CommandNSIdentify : public Command
{
SyntaxError(source, "IDENTIFY", _("IDENTIFY [account] \037password\037"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" IDENTIFY Identify yourself with your password"));
}
};
class NSIdentify : public Module
+1 -5
View File
@@ -31,6 +31,7 @@ class CommandNSInfo : public Command
CommandNSInfo() : Command("INFO", 1, 2)
{
this->SetFlag(CFLAG_ALLOW_UNREGISTERED);
this->SetDesc("Displays information about a given nickname");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -161,11 +162,6 @@ class CommandNSInfo : public Command
{
SyntaxError(source, "INFO", _("INFO \037nick\037"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" INFO Displays information about a given nickname"));
}
};
class NSInfo : public Module
+1 -5
View File
@@ -19,6 +19,7 @@ class CommandNSList : public Command
public:
CommandNSList() : Command("LIST", 1, 2)
{
this->SetDesc("List all registered nicknames that match a given pattern");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -220,11 +221,6 @@ class CommandNSList : public Command
else
SyntaxError(source, "LIST", LanguageString::NICK_LIST_SYNTAX);
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" LIST List all registered nicknames that match a given pattern"));
}
};
class NSList : public Module
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandNSLogout : public Command
public:
CommandNSLogout() : Command("LOGOUT", 0, 2)
{
this->SetDesc("Reverses the effect of the IDENTIFY command");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -89,11 +90,6 @@ class CommandNSLogout : public Command
{
SyntaxError(source, "LOGOUT", _("LOGOUT"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" LOGOUT Reverses the effect of the IDENTIFY command"));
}
};
class NSLogout : public Module
+1 -5
View File
@@ -19,6 +19,7 @@ class CommandNSRecover : public Command
CommandNSRecover() : Command("RECOVER", 1, 2)
{
this->SetFlag(CFLAG_ALLOW_UNREGISTERED);
this->SetDesc("Kill another user who has taken your nick");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -119,11 +120,6 @@ class CommandNSRecover : public Command
{
SyntaxError(source, "RECOVER", _("RECOVER \037nickname\037 [\037password\037]"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" RECOVER Kill another user who has taken your nick"));
}
};
class NSRecover : public Module
+3 -15
View File
@@ -135,6 +135,7 @@ class CommandNSConfirm : public Command
CommandNSConfirm(const Anope::string &cmdn, int min, int max) : Command(cmdn, min, max)
{
this->SetFlag(CFLAG_ALLOW_UNREGISTERED);
this->SetDesc("Confirm a nickserv auth code");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -167,11 +168,6 @@ class CommandNSConfirm : public Command
{
source.Reply(LanguageString::NICK_CONFIRM_INVALID);
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" CONFIRM Confirm a nickserv auth code"));
}
};
class CommandNSRegister : public CommandNSConfirm
@@ -180,6 +176,7 @@ class CommandNSRegister : public CommandNSConfirm
CommandNSRegister() : CommandNSConfirm("REGISTER", 1, 2)
{
this->SetFlag(CFLAG_ALLOW_UNREGISTERED);
this->SetDesc("Register a nickname");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -353,11 +350,6 @@ class CommandNSRegister : public CommandNSConfirm
else
SyntaxError(source, "REGISTER", _("\037password\037 [\037email\037]"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" REGISTER Register a nickname"));
}
};
class CommandNSResend : public Command
@@ -366,6 +358,7 @@ class CommandNSResend : public Command
CommandNSResend() : Command("RESEND", 0, 0)
{
this->SetFlag(CFLAG_ALLOW_UNREGISTERED);
this->SetDesc("Resend a nickserv auth code");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -405,11 +398,6 @@ class CommandNSResend : public Command
"to the e-mail address of the user whom is performing it."));
return true;
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" RESEND Resend a nickserv auth code"));
}
};
class NSRegister : public Module
+1 -5
View File
@@ -19,6 +19,7 @@ class CommandNSRelease : public Command
CommandNSRelease() : Command("RELEASE", 1, 2)
{
this->SetFlag(CFLAG_ALLOW_UNREGISTERED);
this->SetDesc("Regain custody of your nick after RECOVER");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -95,11 +96,6 @@ class CommandNSRelease : public Command
{
SyntaxError(source, "RELEASE", _("RELEASE \037nickname\037 [\037password\037]"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" RELEASE Regain custody of your nick after RECOVER"));
}
};
class NSRelease : public Module
+1 -5
View File
@@ -21,6 +21,7 @@ class CommandNSResetPass : public Command
CommandNSResetPass() : Command("RESETPASS", 1, 1)
{
this->SetFlag(CFLAG_ALLOW_UNREGISTERED);
this->SetDesc("Helps you reset lost passwords");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -58,11 +59,6 @@ class CommandNSResetPass : public Command
{
SyntaxError(source, "RESETPASS", _("RESETPASS \037nickname\037\002"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" RESETPASS Helps you reset lost passwords"));
}
};
class NSResetPass : public Module
+3 -15
View File
@@ -21,6 +21,7 @@ class CommandNSSASet : public Command
public:
CommandNSSASet() : Command("SASET", 2, 4)
{
this->SetDesc("Set SET-options on another nickname");
}
~CommandNSSASet()
@@ -100,11 +101,6 @@ class CommandNSSASet : public Command
SyntaxError(source, "SASET", LanguageString::NICK_SASET_SYNTAX);
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" SASET Set SET-options on another nickname"));
}
bool AddSubcommand(Module *creator, Command *c)
{
c->module = creator;
@@ -133,6 +129,7 @@ class CommandNSSASetDisplay : public Command
public:
CommandNSSASetDisplay() : Command("DISPLAY", 2, 2, "nickserv/saset/display")
{
this->SetDesc("Set the display of the group in Services");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -168,11 +165,6 @@ class CommandNSSASetDisplay : public Command
// XXX
SyntaxError(source, "SASET", LanguageString::NICK_SASET_SYNTAX);
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" DISPLAY Set the display of the group in Services"));
}
};
class CommandNSSASetPassword : public Command
@@ -180,6 +172,7 @@ class CommandNSSASetPassword : public Command
public:
CommandNSSASetPassword() : Command("PASSWORD", 2, 2, "nickserv/saset/password")
{
this->SetDesc("Set the nickname password");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -239,11 +232,6 @@ class CommandNSSASetPassword : public Command
{
SyntaxError(source, "SASET", LanguageString::NICK_SASET_SYNTAX);
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" PASSWORD Set the nickname password"));
}
};
class NSSASet : public Module
+1 -5
View File
@@ -18,6 +18,7 @@ class CommandNSSASetNoexpire : public Command
public:
CommandNSSASetNoexpire() : Command("NOEXPIRE", 1, 2, "nickserv/saset/noexpire")
{
this->SetDesc("Prevent the nickname from expiring");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -57,11 +58,6 @@ class CommandNSSASetNoexpire : public Command
{
SyntaxError(source, "SASET NOEXPIRE", _("SASET \037nickname\037 NOEXPIRE {ON | OFF}"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" NOEXPIRE Prevent the nickname from expiring"));
}
};
class NSSASetNoexpire : public Module
+1 -5
View File
@@ -21,6 +21,7 @@ class CommandNSSendPass : public Command
CommandNSSendPass() : Command("SENDPASS", 1, 1)
{
this->SetFlag(CFLAG_ALLOW_UNREGISTERED);
this->SetDesc("Forgot your password? Try this");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -69,11 +70,6 @@ class CommandNSSendPass : public Command
{
SyntaxError(source, "SENDPASS", _("SENDPASS \037nickname\037"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" SENDPASS Forgot your password? Try this"));
}
};
class NSSendPass : public Module
+3 -15
View File
@@ -21,6 +21,7 @@ class CommandNSSet : public Command
public:
CommandNSSet() : Command("SET", 1, 3)
{
this->SetDesc("Set options, including kill protection");
}
~CommandNSSet()
@@ -97,11 +98,6 @@ class CommandNSSet : public Command
SyntaxError(source, "SET", LanguageString::NICK_SET_SYNTAX);
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" SET Set options, including kill protection"));
}
bool AddSubcommand(Module *creator, Command *c)
{
c->module = creator;
@@ -130,6 +126,7 @@ class CommandNSSetDisplay : public Command
public:
CommandNSSetDisplay() : Command("DISPLAY", 1)
{
this->SetDesc("Set the display of your group in Services");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -162,11 +159,6 @@ class CommandNSSetDisplay : public Command
// XXX
SyntaxError(source, "SET", LanguageString::NICK_SET_SYNTAX);
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" DISPLAY Set the display of your group in Services"));
}
};
class CommandNSSetPassword : public Command
@@ -174,6 +166,7 @@ class CommandNSSetPassword : public Command
public:
CommandNSSetPassword() : Command("PASSWORD", 1)
{
this->SetDesc("Set your nickname password");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -224,11 +217,6 @@ class CommandNSSetPassword : public Command
// XXX
SyntaxError(source, "SET", LanguageString::NICK_SET_SYNTAX);
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" PASSWORD Set your nickname password"));
}
};
class NSSet : public Module
+1 -10
View File
@@ -18,6 +18,7 @@ class CommandNSSetAutoOp : public Command
public:
CommandNSSetAutoOp(const Anope::string &spermission = "") : Command("AUTOOP", 1, 2, spermission)
{
this->SetDesc("Should services op you automatically.");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -58,11 +59,6 @@ class CommandNSSetAutoOp : public Command
{
SyntaxError(source, "SET AUTOOP", _("SET AUTOOP {ON | OFF}"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" AUTOOP Should services op you automatically. "));
}
};
class CommandNSSASetAutoOp : public CommandNSSetAutoOp
@@ -86,11 +82,6 @@ class CommandNSSASetAutoOp : public CommandNSSetAutoOp
{
SyntaxError(source, "SET AUTOOP", _("SASET \037nickname\037 AUTOOP {ON | OFF}"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" AUTOOP Turn autoop on or off"));
}
};
class NSSetAutoOp : public Module
+1 -10
View File
@@ -18,6 +18,7 @@ class CommandNSSetEmail : public Command
public:
CommandNSSetEmail(const Anope::string &spermission = "") : Command("EMAIL", 1, 2, spermission)
{
this->SetDesc("Associate an E-mail address with your nickname");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -69,11 +70,6 @@ class CommandNSSetEmail : public Command
"information on the nickname with the \002INFO\002 command."));
return true;
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" EMAIL Associate an E-mail address with your nickname"));
}
};
class CommandNSSASetEmail : public CommandNSSetEmail
@@ -90,11 +86,6 @@ class CommandNSSASetEmail : public CommandNSSetEmail
"Associates the given E-mail address with the nickname."));
return true;
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" EMAIL Associate an E-mail address with the nickname"));
}
};
class NSSetEmail : public Module
+1 -10
View File
@@ -18,6 +18,7 @@ class CommandNSSetGreet : public Command
public:
CommandNSSetGreet(const Anope::string &spermission = "") : Command("GREET", 1, 2, spermission)
{
this->SetDesc("Associate a greet message with your nickname");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -53,11 +54,6 @@ class CommandNSSetGreet : public Command
"access on it."));
return true;
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" GREET Associate a greet message with your nickname"));
}
};
class CommandNSSASetGreet : public CommandNSSetGreet
@@ -77,11 +73,6 @@ class CommandNSSASetGreet : public CommandNSSetGreet
"access on it."));
return true;
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" GREET Associate a greet message with the nickname"));
}
};
class NSSetGreet : public Module
+1 -10
View File
@@ -18,6 +18,7 @@ class CommandNSSetHide : public Command
public:
CommandNSSetHide(const Anope::string &spermission = "") : Command("HIDE", 2, 3, spermission)
{
this->SetDesc("Hide certain pieces of nickname information");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -97,11 +98,6 @@ class CommandNSSetHide : public Command
{
SyntaxError(source, "SET HIDE", _("SET HIDE {EMAIL | STATUS | USERMASK | QUIT} {ON | OFF}"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" HIDE Hide certain pieces of nickname information"));
}
};
class CommandNSSASetHide : public CommandNSSetHide
@@ -129,11 +125,6 @@ class CommandNSSASetHide : public CommandNSSetHide
{
SyntaxError(source, "SASET HIDE", _("SASET NICK_SASET_HIDE_SYNTAX37nicknameNICK_SASET_HIDE_SYNTAX37 HIDE {EMAIL | STATUS | USERMASK | QUIT} {ON | OFF}"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" HIDE Hide certain pieces of nickname information"));
}
};
class NSSetHide : public Module
+1 -10
View File
@@ -18,6 +18,7 @@ class CommandNSSetKill : public Command
public:
CommandNSSetKill(const Anope::string &spermission = "") : Command("KILL", 2, 3, spermission)
{
this->SetDesc("Turn protection on or off");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -92,11 +93,6 @@ class CommandNSSetKill : public Command
{
SyntaxError(source, "SET KILL", Config->NSAllowKillImmed ? _("SET KILL {ON | QUICK | IMMED | OFF}") : _("SET KILL {ON | QUICK | OFF}"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" KILL Turn protection on or off"));
}
};
class CommandNSSASetKill : public CommandNSSetKill
@@ -129,11 +125,6 @@ class CommandNSSASetKill : public CommandNSSetKill
{
SyntaxError(source, "SASET KILL", Config->NSAllowKillImmed ? _("SASET \037nickname\037 KILL {ON | QUICK | IMMED | OFF}") : _("SASET \037nickname\037 KILL {ON | QUICK | OFF}"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" KILL Turn protection on or off"));
}
};
class NSSetKill : public Module
+1 -17
View File
@@ -18,6 +18,7 @@ class CommandNSSetLanguage : public Command
public:
CommandNSSetLanguage(const Anope::string &spermission = "") : Command("LANGUAGE", 2, 2, spermission)
{
this->SetDesc("Set the language Services will use when messaging you");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -75,13 +76,6 @@ class CommandNSSetLanguage : public Command
{
SyntaxError(source, "SET LANGUAGE", _("SET LANGUAGE \037language\037"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" LANGUAGE Set the language Services will use when\n"
" sending messages to you"));
}
};
class CommandNSSASetLanguage : public CommandNSSetLanguage
@@ -106,16 +100,6 @@ class CommandNSSASetLanguage : public CommandNSSetLanguage
{
SyntaxError(source, "SASET LANGUAGE", _("SASET \037nickname\037 LANGUAGE \037number\037"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_("Syntax: \002SASET \037nickname\037 LANGUAGE \037language\037\002\n"
" \n"
"Changes the language Services uses when sending messages to\n"
"\037nickname\037 (for example, when responding to a command he sends).\n"
"\037language\037 should be chosen from a list of supported languages\n"
"that you can get by typing \002%R%s HELP SET LANGUAGE\002."), NickServ->nick.c_str());
}
};
class NSSetLanguage : public Module
+1 -10
View File
@@ -18,6 +18,7 @@ class CommandNSSetMessage : public Command
public:
CommandNSSetMessage(const Anope::string &spermission = "") : Command("MSG", 2, 2, spermission)
{
this->SetDesc("Change the communication method of Services");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -65,11 +66,6 @@ class CommandNSSetMessage : public Command
{
SyntaxError(source, "SET MSG", _("SET MSG {ON | OFF}"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" MSG Change the communication method of Services"));
}
};
class CommandNSSASetMessage : public CommandNSSetMessage
@@ -93,11 +89,6 @@ class CommandNSSASetMessage : public CommandNSSetMessage
{
SyntaxError(source, "SASET MSG", _("SASAET \037nickname\037 PRIVATE {ON | OFF}"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" MSG Change the communication method of Services"));
}
};
class NSSetMessage : public Module
+1 -9
View File
@@ -18,6 +18,7 @@ class CommandNSSetPrivate : public Command
public:
CommandNSSetPrivate(const Anope::string &spermission = "") : Command("PRIVATE", 2, 2, spermission)
{
this->SetDesc("Prevent the nickname from appearing in a \002%R" + NickServ->nick + " LIST\002");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -62,11 +63,6 @@ class CommandNSSetPrivate : public Command
{
SyntaxError(source, "SET PRIVATE", _("SET PRIVATE {ON | OFF}"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" PRIVATE Prevent the nickname from appearing in a \002%R%s LIST\002"), ChanServ->nick.c_str());
}
};
class CommandNSSASetPrivate : public CommandNSSetPrivate
@@ -93,10 +89,6 @@ class CommandNSSASetPrivate : public CommandNSSetPrivate
{
SyntaxError(source, "SASET PRIVATE", _("SASET \037nickname\037 PRIVATE {ON | OFF}"));
}
void OnServHelp(CommandSource &source)
{
}
};
class NSSetPrivate : public Module

Some files were not shown because too many files have changed in this diff Show More