Skip to content

Commit

Permalink
fix privilege issue
Browse files Browse the repository at this point in the history
  • Loading branch information
c650 committed Dec 31, 2016
1 parent aaddd03 commit e8cfbd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/IRCBot/bot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ namespace IRC {
}

/* Here we go through the user-added Commands */
for (auto command : this->commands) { /* checks sender's perms.... */
if (command->triggered(p)) {
for (auto command : this->commands) { /* checks sender's perms.... */
if (command->triggered(p) && (sender_is_admin || !command->requires_admin())) {
command->run(p);
}
}
Expand Down

0 comments on commit e8cfbd2

Please sign in to comment.