diff options
author | Adam <Adam@anope.org> | 2010-12-06 17:06:57 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-12-12 19:37:03 -0500 |
commit | aed53dbb47822a79eb9a6b61095ad04ec3d67818 (patch) | |
tree | 72d3210b5609ea2163854d14ec7fb2f48d8b4d12 /src/modes.cpp | |
parent | a507816701d136a1c22d2f6779d811840d61577c (diff) |
Cleaned up some things, made the protocol modules use some basic inheritance to cut back on their code duplication. More work can be done in the future to remove even more of it.
Diffstat (limited to 'src/modes.cpp')
-rw-r--r-- | src/modes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modes.cpp b/src/modes.cpp index 7439c852c..1daea86b3 100644 --- a/src/modes.cpp +++ b/src/modes.cpp @@ -256,7 +256,7 @@ bool ChannelModeKey::IsValid(const Anope::string &value) const */ bool ChannelModeAdmin::CanSet(User *u) const { - if (u && is_oper(u)) + if (u && u->HasMode(UMODE_OPER)) return true; return false; @@ -268,7 +268,7 @@ bool ChannelModeAdmin::CanSet(User *u) const */ bool ChannelModeOper::CanSet(User *u) const { - if (u && is_oper(u)) + if (u && u->HasMode(UMODE_OPER)) return true; return false; |