summaryrefslogtreecommitdiff
path: root/modules/commands/ns_saset.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-10-14 12:20:07 -0400
committerAdam <Adam@anope.org>2011-10-14 12:20:07 -0400
commitddc3c2f38cf6ddc0c1f8ad82489a281e01ef50fc (patch)
tree832b02a62d2da9078b7ab5f9d4d5d99e15570294 /modules/commands/ns_saset.cpp
parent53275c362c521807b70e1eb7cf936f35593dd4dc (diff)
Added options:nonicknameownership config option
Diffstat (limited to 'modules/commands/ns_saset.cpp')
-rw-r--r--modules/commands/ns_saset.cpp43
1 files changed, 1 insertions, 42 deletions
diff --git a/modules/commands/ns_saset.cpp b/modules/commands/ns_saset.cpp
index d8305e43a..481b8655e 100644
--- a/modules/commands/ns_saset.cpp
+++ b/modules/commands/ns_saset.cpp
@@ -55,46 +55,6 @@ class CommandNSSASet : public Command
}
};
-class CommandNSSASetDisplay : public Command
-{
- public:
- CommandNSSASetDisplay(Module *creator) : Command(creator, "nickserv/saset/display", 2, 2)
- {
- this->SetDesc(_("Set the display of the group in Services"));
- this->SetSyntax(_("\037nickname\037 \037new-display\037"));
- }
-
- void Execute(CommandSource &source, const std::vector<Anope::string> &params)
- {
- NickAlias *setter_na = findnick(params[0]);
- if (setter_na == NULL)
- {
- source.Reply(NICK_X_NOT_REGISTERED, params[0].c_str());
- return;
- }
- NickCore *nc = setter_na->nc;
-
- NickAlias *na = findnick(params[1]);
- if (!na || na->nc != nc)
- {
- source.Reply(_("The new display for \002%s\002 MUST be a nickname of the nickname group!"), nc->display.c_str());
- return;
- }
-
- change_core_display(nc, params[1]);
- source.Reply(NICK_SET_DISPLAY_CHANGED, nc->display.c_str());
- return;
- }
-
- bool OnHelp(CommandSource &source, const Anope::string &)
- {
- this->SendSyntax(source);
- source.Reply(_("Changes the display used to refer to the nickname group in \n"
- "Services. The new display MUST be a nick of the group."));
- return true;
- }
-};
-
class CommandNSSASetPassword : public Command
{
public:
@@ -155,12 +115,11 @@ class CommandNSSASetPassword : public Command
class NSSASet : public Module
{
CommandNSSASet commandnssaset;
- CommandNSSASetDisplay commandnssasetdisplay;
CommandNSSASetPassword commandnssasetpassword;
public:
NSSASet(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, CORE),
- commandnssaset(this), commandnssasetdisplay(this), commandnssasetpassword(this)
+ commandnssaset(this), commandnssasetpassword(this)
{
this->SetAuthor("Anope");