Commit 6b3fdec4 authored by louiz’'s avatar louiz’

Fix // on roster

parent 5d4b0a9e
......@@ -1300,9 +1300,7 @@ class Core(object):
"""
if line == "":
return
if line.startswith('//'):
self.command_say(line[1:])
elif line.startswith('/') and not line.startswith('/me '):
if line.startswith('/'):
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