mirror of
https://github.com/anope/anope.git
synced 2026-06-29 08:56:39 +02:00
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.
This commit is contained in:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user