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:
parent
f3acb3c21d
commit
187ca11946
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user