Skip to content

Commit

Permalink
s: if no message, don't print (avoid ':s' smiley)
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilhem Saurel committed Aug 24, 2016
1 parent 28a0f29 commit 9e55d8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion s/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ def __init__(self, bot):

@defaultcmd
def answer_help(self, sender, message):
return self.desc
if message:
return self.desc

@answercmd(r'^/(?P<before>.*)/(?P<after>.*)/(?P<guy>.*)$')
def answer_with_guy(self, sender, before, after, guy):
Expand Down

0 comments on commit 9e55d8b

Please sign in to comment.