summaryrefslogtreecommitdiff
path: root/modules/commands/os_login.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-05-05 01:55:04 -0400
committerAdam <Adam@anope.org>2013-05-05 01:55:04 -0400
commit1d0bb9b26b7ad58ab0bf979ac046f4511b3bf12b (patch)
tree4486f0784bdf050fd7eb225c0cb9df352ce1f45a /modules/commands/os_login.cpp
parent781defb7076ddfddf723ca08cd0a518b6657b64f (diff)
Rework the config file reader to be much more flexible and move many configuration directives to the actual modules they are used in.
Diffstat (limited to 'modules/commands/os_login.cpp')
-rw-r--r--modules/commands/os_login.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/modules/commands/os_login.cpp b/modules/commands/os_login.cpp
index 36d772aa2..30172a0f3 100644
--- a/modules/commands/os_login.cpp
+++ b/modules/commands/os_login.cpp
@@ -19,7 +19,6 @@ class CommandOSLogin : public Command
public:
CommandOSLogin(Module *creator) : Command(creator, "operserv/login", 1, 1)
{
- this->SetDesc(Anope::printf(_("Login to %s"), Config->OperServ.c_str()));
this->SetSyntax(_("\037password\037"));
this->RequireUser(true);
}
@@ -60,6 +59,11 @@ class CommandOSLogin : public Command
"configured without a password."), source.service->nick.c_str());
return true;
}
+
+ const Anope::string GetDesc(CommandSource &source) const anope_override
+ {
+ return Anope::printf(_("Login to %s"), source.service->nick.c_str());
+ }
};
class CommandOSLogout : public Command
@@ -67,7 +71,6 @@ class CommandOSLogout : public Command
public:
CommandOSLogout(Module *creator) : Command(creator, "operserv/logout", 0, 0)
{
- this->SetDesc(Anope::printf(_("Logout from %s"), Config->OperServ.c_str()));
this->RequireUser(true);
}
@@ -98,6 +101,11 @@ class CommandOSLogout : public Command
"with a password."), source.service->nick.c_str());
return true;
}
+
+ const Anope::string GetDesc(CommandSource &source) const anope_override
+ {
+ return Anope::printf(_("Logout from %s"), source.service->nick.c_str());
+ }
};
class OSLogin : public Module