Skip to content

Commit

Permalink
bot: use Channel.has_privilege
Browse files Browse the repository at this point in the history
  • Loading branch information
Exirel committed Dec 19, 2020
1 parent 72b6e28 commit a12b8e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sopel/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def has_channel_privilege(self, channel, privilege):
if channel not in self.channels:
raise RuntimeError('Unknown channel %s' % channel)

return self.channels[channel].privileges[self.nick] >= privilege
return self.channels[channel].has_privilege(self.nick, privilege)

# signal handlers

Expand Down

0 comments on commit a12b8e6

Please sign in to comment.