Compare commits

..

No commits in common. "bot_perm_fix" and "main" have entirely different histories.

View file

@ -232,14 +232,9 @@ class CIdleRPGMod : public CModule {
}
// Bot has 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)) {
if (!pBot->HasPerm(CChan::Op)) {
PutModule(t_f(
"Error logging in: Bot [{1}] not operator in channel [{2}]")(
"Error logging in: Bot [{1}] not operator in in channel [{2}]")(
sChan.GetBotnick(), sChan.GetChannel()));
return;
}