summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-10-31 19:11:51 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-10-31 19:11:51 +0000
commit38e290fdefc9f1e1e2d1cff6c0fa8652ccf3c719 (patch)
tree071b12d4c581f73b6590d78eb4ca253f8aba5b8a
parent4ecda478ec4424f2f0200104d0692ddafa081ce9 (diff)
downloadpoezio-38e290fdefc9f1e1e2d1cff6c0fa8652ccf3c719.tar.gz
poezio-38e290fdefc9f1e1e2d1cff6c0fa8652ccf3c719.tar.bz2
poezio-38e290fdefc9f1e1e2d1cff6c0fa8652ccf3c719.tar.xz
poezio-38e290fdefc9f1e1e2d1cff6c0fa8652ccf3c719.zip
link mauve (and me): use // to send a message beginning be '/'
-rw-r--r--src/gui.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui.py b/src/gui.py
index d3f58460..01fa38c8 100644
--- a/src/gui.py
+++ b/src/gui.py
@@ -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"