Skip to content

Commit

Permalink
fix target: new privilege related methods on Channel
Browse files Browse the repository at this point in the history
Co-authored-by: dgw <dgw@technobabbl.es>
  • Loading branch information
Exirel and dgw authored Nov 9, 2020
1 parent 0f0d180 commit d876960
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions sopel/tools/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,13 @@ def has_privilege(self, nick, privilege):
return self.privileges.get(Identifier(nick), 0) >= privilege

def is_oper(self, nick):
"""Tell if a user has the OP privilege level.
"""Tell if a user has the OPER (operator) privilege level.
:param str nick: a user's nick in this channel
:rtype: bool
Unlike :meth:`has_privilege`, this method checks if the user has been
explicitely granted the OPER privilege level::
explicitly granted the OPER privilege level::
>>> channel.add_user(some_user, plugin.OPER)
>>> channel.is_oper(some_user.nick)
Expand All @@ -171,7 +171,7 @@ def is_owner(self, nick):
:rtype: bool
Unlike :meth:`has_privilege`, this method checks if the user has been
explicitely granted the OWNER privilege level::
explicitly granted the OWNER privilege level::
>>> channel.add_user(some_user, plugin.OWNER)
>>> channel.is_owner(some_user.nick)
Expand All @@ -197,7 +197,7 @@ def is_admin(self, nick):
:rtype: bool
Unlike :meth:`has_privilege`, this method checks if the user has been
explicitely granted the ADMIN privilege level::
explicitly granted the ADMIN privilege level::
>>> channel.add_user(some_user, plugin.ADMIN)
>>> channel.is_admin(some_user.nick)
Expand All @@ -223,7 +223,7 @@ def is_op(self, nick):
:rtype: bool
Unlike :meth:`has_privilege`, this method checks if the user has been
explicitely granted the OP privilege level::
explicitly granted the OP privilege level::
>>> channel.add_user(some_user, plugin.OP)
>>> channel.is_op(some_user.nick)
Expand Down Expand Up @@ -275,7 +275,7 @@ def is_voiced(self, nick):
:rtype: bool
Unlike :meth:`has_privilege`, this method checks if the user has been
explicitely granted the VOICE privilege level::
explicitly granted the VOICE privilege level::
>>> channel.add_user(some_user, plugin.VOICE)
>>> channel.is_voiced(some_user.nick)
Expand Down

0 comments on commit d876960

Please sign in to comment.