commands.py: Fix error message of getSomethingWithoutSpaces.

This commit is contained in:
Valentin Lorentz 2013-07-16 20:20:08 +00:00
parent 910244ef68
commit 29dc1438a0

View File

@ -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]):