diff --git a/src/commands.py b/src/commands.py index d0924fbb7..bf7891a0c 100644 --- a/src/commands.py +++ b/src/commands.py @@ -578,7 +578,8 @@ def getSomething(irc, msg, args, state, errorMsg=None, p=None): def getSomethingNoSpaces(irc, msg, args, state, *L): def p(s): return len(s.split(None, 1)) == 1 - getSomething(irc, msg, args, state, p=p, *L) + getSomething(irc, msg, args, state, p=p, errorMsg=_('You must not give a ' + 'string containing spaces as an argument.'), *L) def private(irc, msg, args, state): if irc.isChannel(msg.args[0]):