Compare commits
No commits in common. "bot_perm_fix" and "main" have entirely different histories.
bot_perm_f
...
main
1 changed files with 3 additions and 8 deletions
|
@ -232,14 +232,9 @@ class CIdleRPGMod : public CModule {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Bot has op?
|
// Bot has op?
|
||||||
auto is_op = [](CNick* bot) {
|
if (!pBot->HasPerm(CChan::Op)) {
|
||||||
return (bot->HasPerm(CChan::Op) || bot->HasPerm(CChan::HalfOp) ||
|
|
||||||
bot->HasPerm(CChan::Admin) || bot->HasPerm(CChan::Owner));
|
|
||||||
};
|
|
||||||
|
|
||||||
if (!is_op(pBot)) {
|
|
||||||
PutModule(t_f(
|
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()));
|
sChan.GetBotnick(), sChan.GetChannel()));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue