link mauve (and me): use // to send a message beginning be '/'
This commit is contained in:
parent
4ecda478ec
commit
38e290fdef
1 changed files with 3 additions and 1 deletions
|
@ -1361,7 +1361,9 @@ class Gui(object):
|
||||||
"""
|
"""
|
||||||
if line == "":
|
if line == "":
|
||||||
return
|
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:]
|
command = line.strip()[:].split()[0][1:]
|
||||||
arg = line[2+len(command):] # jump the '/' and the ' '
|
arg = line[2+len(command):] # jump the '/' and the ' '
|
||||||
# example. on "/link 0 open", command = "link" and arg = "0 open"
|
# example. on "/link 0 open", command = "link" and arg = "0 open"
|
||||||
|
|
Loading…
Reference in a new issue