diff --git a/idlerpg.cpp b/idlerpg.cpp index 3dd945a..d72ea83 100644 --- a/idlerpg.cpp +++ b/idlerpg.cpp @@ -232,7 +232,12 @@ class CIdleRPGMod : public CModule { } // Bot has op? - if (!pBot->HasPerm(CChan::Op)) { + auto is_op = [](CNick* bot) { + return (bot->HasPerm(CChan::Op) || bot->HasPerm(CChan::HalfOp) || + bot->HasPerm(CChan::Admin) || bot->HasPerm(CChan::Owner)); + }; + + if (!is_op(pBot)) { PutModule(t_f( "Error logging in: Bot [{1}] not operator in in channel [{2}]")( sChan.GetBotnick(), sChan.GetChannel())); @@ -284,4 +289,4 @@ void TModInfo(CModInfo& Info) { NETWORKMODULEDEFS( CIdleRPGMod, - t_s("Automatically handles your login to IdleRPG games/channels")) \ No newline at end of file + t_s("Automatically handles your login to IdleRPG games/channels"))