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

parent 4ecda478
......@@ -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"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment