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_forbid.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_forbid.cpp')
-rw-r--r-- | modules/commands/os_forbid.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/commands/os_forbid.cpp b/modules/commands/os_forbid.cpp index 02daec4a2..4b807ab1a 100644 --- a/modules/commands/os_forbid.cpp +++ b/modules/commands/os_forbid.cpp @@ -262,7 +262,7 @@ class OSForbid : public Module void OnUserNickChange(User *u, const Anope::string &) anope_override { - if (u->HasMode(UMODE_OPER)) + if (u->HasMode("OPER")) return; ForbidData *d = this->forbidService.FindForbid(u->nick, FT_NICK); @@ -281,7 +281,7 @@ class OSForbid : public Module void OnJoinChannel(User *u, Channel *c) anope_override { - if (u->HasMode(UMODE_OPER) || !OperServ) + if (u->HasMode("OPER") || !OperServ) return; ForbidData *d = this->forbidService.FindForbid(c->name, FT_CHAN); @@ -292,16 +292,16 @@ class OSForbid : public Module XLine x(c->name, OperServ->nick, Anope::CurTime + Config->CSInhabit, d->reason); IRCD->SendSQLine(NULL, &x); } - else if (!c->HasFlag(CH_INHABIT)) + else if (!c->HasExt("INHABIT")) { /* Join ChanServ and set a timer for this channel to part ChanServ later */ c->Hold(); /* Set +si to prevent rejoin */ - c->SetMode(NULL, CMODE_NOEXTERNAL); - c->SetMode(NULL, CMODE_TOPIC); - c->SetMode(NULL, CMODE_SECRET); - c->SetMode(NULL, CMODE_INVITE); + c->SetMode(NULL, "NOEXTERNAL"); + c->SetMode(NULL, "TOPIC"); + c->SetMode(NULL, "SECRET"); + c->SetMode(NULL, "INVITE"); } if (d->reason.empty()) |