link mauve (and me): use // to send a message beginning be '/'

This commit is contained in:
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 2010-10-31 19:11:51 +00:00
parent 4ecda478ec
commit 38e290fdef

View file

@ -1361,7 +1361,9 @@ class Gui(object):
"""
if line == "":
return
if line.startswith('/') and not line.startswith('/me '):
if line.startswith('//'):
self.command_say(line[1:])
elif line.startswith('/') and not line.startswith('/me '):
command = line.strip()[:].split()[0][1:]
arg = line[2+len(command):] # jump the '/' and the ' '
# example. on "/link 0 open", command = "link" and arg = "0 open"