diff options
author | Adam <Adam@anope.org> | 2013-01-21 22:31:16 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-01-21 22:31:16 -0500 |
commit | ddaa001dafb5122e6e363e4acbbe6ce045b7b104 (patch) | |
tree | 0364a76606ac6e2881ebd663601ce260f7c1101e /modules/commands/os_noop.cpp | |
parent | 51c049e1a738e9124bab3961f35b830906517421 (diff) |
Merge usefulness of Flags and Extensible classes into Extensible, made most flags we have juse strings instead of defines/enums
Diffstat (limited to 'modules/commands/os_noop.cpp')
-rw-r--r-- | modules/commands/os_noop.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/commands/os_noop.cpp b/modules/commands/os_noop.cpp index 263c1cbb0..92c9db668 100644 --- a/modules/commands/os_noop.cpp +++ b/modules/commands/os_noop.cpp @@ -31,7 +31,7 @@ class CommandOSNOOP : public Command Server *s = Server::Find(server); if (s == NULL) source.Reply(_("Server %s does not exist."), server.c_str()); - else if (s == Me || s->HasFlag(SERVER_JUPED)) + else if (s == Me || s->IsJuped()) source.Reply(_("You may not NOOP services.")); else if (cmd.equals_ci("SET")) { @@ -49,7 +49,7 @@ class CommandOSNOOP : public Command User *u2 = it->second; ++it; - if (u2->server == s && u2->HasMode(UMODE_OPER)) + if (u2->server == s && u2->HasMode("OPER")) u2->Kill(Config->OperServ, reason); } } @@ -89,9 +89,9 @@ class OSNOOP : public Module ModuleManager::Attach(I_OnUserModeSet, this); } - void OnUserModeSet(User *u, UserModeName Name) anope_override + void OnUserModeSet(User *u, const Anope::string &mname) anope_override { - if (Name == UMODE_OPER && u->server->HasExt("noop")) + if (mname == "OPER" && u->server->HasExt("noop")) { Anope::string *setter = u->server->GetExt<ExtensibleItemClass<Anope::string> *>("noop"); if (setter) |