Skip to content

Commit d501a10

Browse files
Exireldgw
andcommitted
fix target: new privilege related methods on Channel
Co-authored-by: dgw <[email protected]>
1 parent 0d65275 commit d501a10

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

sopel/tools/target.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,13 @@ def has_privilege(self, nick, privilege):
139139
return self.privileges.get(Identifier(nick), 0) >= privilege
140140

141141
def is_oper(self, nick):
142-
"""Tell if a user has the OP privilege level.
142+
"""Tell if a user has the OPER (operator) privilege level.
143143
144144
:param str nick: a user's nick in this channel
145145
:rtype: bool
146146
147147
Unlike :meth:`has_privilege`, this method checks if the user has been
148-
explicitely granted the OPER privilege level::
148+
explicitly granted the OPER privilege level::
149149
150150
>>> channel.add_user(some_user, plugin.OPER)
151151
>>> channel.is_oper(some_user.nick)
@@ -171,7 +171,7 @@ def is_owner(self, nick):
171171
:rtype: bool
172172
173173
Unlike :meth:`has_privilege`, this method checks if the user has been
174-
explicitely granted the OWNER privilege level::
174+
explicitly granted the OWNER privilege level::
175175
176176
>>> channel.add_user(some_user, plugin.OWNER)
177177
>>> channel.is_owner(some_user.nick)
@@ -197,7 +197,7 @@ def is_admin(self, nick):
197197
:rtype: bool
198198
199199
Unlike :meth:`has_privilege`, this method checks if the user has been
200-
explicitely granted the ADMIN privilege level::
200+
explicitly granted the ADMIN privilege level::
201201
202202
>>> channel.add_user(some_user, plugin.ADMIN)
203203
>>> channel.is_admin(some_user.nick)
@@ -223,7 +223,7 @@ def is_op(self, nick):
223223
:rtype: bool
224224
225225
Unlike :meth:`has_privilege`, this method checks if the user has been
226-
explicitely granted the OP privilege level::
226+
explicitly granted the OP privilege level::
227227
228228
>>> channel.add_user(some_user, plugin.OP)
229229
>>> channel.is_op(some_user.nick)
@@ -275,7 +275,7 @@ def is_voiced(self, nick):
275275
:rtype: bool
276276
277277
Unlike :meth:`has_privilege`, this method checks if the user has been
278-
explicitely granted the VOICE privilege level::
278+
explicitly granted the VOICE privilege level::
279279
280280
>>> channel.add_user(some_user, plugin.VOICE)
281281
>>> channel.is_voiced(some_user.nick)

0 commit comments

Comments
 (0)