mirror of
https://github.com/jlu5/PyLink.git
synced 2025-02-17 14:01:03 +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."""
|
Echoes the text given."""
|
||||||
permissions.check_permissions(irc, source, ['commands.echo'])
|
permissions.check_permissions(irc, source, ['commands.echo'])
|
||||||
|
if not args:
|
||||||
|
irc.error('No text to send!')
|
||||||
|
return
|
||||||
irc.reply(' '.join(args))
|
irc.reply(' '.join(args))
|
||||||
|
|
||||||
def _check_logout_access(irc, source, target, perms):
|
def _check_logout_access(irc, source, target, perms):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user