3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-23 19:19:31 +01:00

commands: show an error if 'echo' is called without a text argument.

This commit is contained in:
James Lu 2017-08-07 00:48:28 -07:00
parent f3acb3c21d
commit 187ca11946

View File

@ -143,6 +143,9 @@ def echo(irc, source, args):
Echoes the text given."""
permissions.check_permissions(irc, source, ['commands.echo'])
if not args:
irc.error('No text to send!')
return
irc.reply(' '.join(args))
def _check_logout_access(irc, source, target, perms):