Skip to content

Commit

Permalink
admin: clean up some docstring/comment typos
Browse files Browse the repository at this point in the history
  • Loading branch information
dgw committed Jan 24, 2019
1 parent 07edfa4 commit 48cea93
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions sopel/modules/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ def quit(bot, trigger):
@sopel.module.example('.msg #YourPants Does anyone else smell neurotoxin?')
def msg(bot, trigger):
"""
Send a message to a given channel or nick. Can only be done in privmsg by an
admin.
Send a message to a given channel or nick. Can only be done in privmsg by
an admin.
"""
if trigger.group(2) is None:
return
Expand All @@ -113,8 +113,8 @@ def msg(bot, trigger):
@sopel.module.priority('low')
def me(bot, trigger):
"""
Send an ACTION (/me) to a given channel or nick. Can only be done in privmsg
by an admin.
Send an ACTION (/me) to a given channel or nick. Can only be done in
privmsg by an admin.
"""
if trigger.group(2) is None:
return
Expand All @@ -133,7 +133,7 @@ def me(bot, trigger):
@sopel.module.priority('low')
def invite_join(bot, trigger):
"""
Join a channel sopel is invited to, if the inviter is an admin.
Join a channel Sopel is invited to, if the inviter is an admin.
"""
if trigger.admin or bot.config.admin.auto_accept_invite:
bot.join(trigger.args[1])
Expand All @@ -145,10 +145,10 @@ def invite_join(bot, trigger):
@sopel.module.priority('low')
def hold_ground(bot, trigger):
"""
This function monitors all kicks across all channels sopel is in. If it
This function monitors all kicks across all channels Sopel is in. If it
detects that it is the one kicked it'll automatically join that channel.
WARNING: This may not be needed and could cause problems if sopel becomes
WARNING: This may not be needed and could cause problems if Sopel becomes
annoying. Please use this with caution.
"""
if bot.config.admin.hold_ground:
Expand All @@ -172,7 +172,7 @@ def mode(bot, trigger):
@sopel.module.commands('set')
@sopel.module.example('.set core.owner Me')
def set_config(bot, trigger):
"""See and modify values of sopels config object.
"""See and modify values of Sopel's config object.
Trigger args:
arg1 - section and option, in the form "section.option"
Expand All @@ -198,7 +198,7 @@ def set_config(bot, trigger):
return

delim = trigger.group(2).find(' ')
# Skip preceeding whitespaces, if any.
# Skip preceding whitespaces, if any.
while delim > 0 and delim < len(trigger.group(2)) and trigger.group(2)[delim] == ' ':
delim = delim + 1

Expand Down Expand Up @@ -236,5 +236,5 @@ def set_config(bot, trigger):
@sopel.module.commands('save')
@sopel.module.example('.save')
def save_config(bot, trigger):
"""Save state of sopels config object to the configuration file."""
"""Save state of Sopel's config object to the configuration file."""
bot.config.save()

0 comments on commit 48cea93

Please sign in to comment.