Skip to content

Commit 960e1da

Browse files
progvaljamessan
authored andcommitted
commands.py: Fix error message of getSomethingWithoutSpaces.
Signed-off-by: James McCoy <[email protected]>
1 parent 5b329df commit 960e1da

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/commands.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,8 @@ def getSomething(irc, msg, args, state, errorMsg=None, p=None):
507507
def getSomethingNoSpaces(irc, msg, args, state, *L):
508508
def p(s):
509509
return len(s.split(None, 1)) == 1
510-
getSomething(irc, msg, args, state, p=p, *L)
510+
errmsg = 'You must not give a string containing spaces as an argument.'
511+
getSomething(irc, msg, args, state, p=p, errorMsg=errmsg, *L)
511512

512513
def private(irc, msg, args, state):
513514
if irc.isChannel(msg.args[0]):

0 commit comments

Comments
 (0)