Skip to content

Commit

Permalink
Merge pull request #7 from sopel-irc/empty-lines
Browse files Browse the repository at this point in the history
providers: don't send empty body/usage lines to IRC
  • Loading branch information
Exirel authored Nov 11, 2023
2 parents 3f0bbcd + 933de94 commit 2e121ad
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sopel_help/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,11 @@ def send_help_command(self, bot, trigger, command, head, body, usages):

reply(head, recipient)
for line in body:
bot.say(line, recipient)
if line:
bot.say(line, recipient)
for line in usages:
bot.say(line, recipient)
if line:
bot.say(line, recipient)

def get_reply_method(self, bot, trigger):
"""Define the reply method and its recipient.
Expand Down

0 comments on commit 2e121ad

Please sign in to comment.