Skip to content

Commit

Permalink
Disable link preview for man pages
Browse files Browse the repository at this point in the history
  • Loading branch information
aluminiumgeek committed Dec 12, 2015
1 parent 293e364 commit 4cb2790
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/user_man.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ def main(bot, module):
elif module in bot.commands['owner']:
result = bot.commands['owner'][module].__doc__
else:
result = 'No such command'
return 'No such command'

return result or 'No manual entry for `{}`'.format(module)
result = result or 'No manual entry for `{}`'.format(module)
bot.send(text=result, data={'disable_web_page_preview': True})

0 comments on commit 4cb2790

Please sign in to comment.