From 960e1da61cad113ccae392c0c6d1fc8e2f195e2c Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Tue, 16 Jul 2013 20:20:08 +0000 Subject: [PATCH] commands.py: Fix error message of getSomethingWithoutSpaces. Signed-off-by: James McCoy --- src/commands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands.py b/src/commands.py index 131f27729..71d66a45b 100644 --- a/src/commands.py +++ b/src/commands.py @@ -507,7 +507,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) + errmsg = 'You must not give a string containing spaces as an argument.' + getSomething(irc, msg, args, state, p=p, errorMsg=errmsg, *L) def private(irc, msg, args, state): if irc.isChannel(msg.args[0]):