diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-10-31 19:11:51 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-10-31 19:11:51 +0000 |
commit | 38e290fdefc9f1e1e2d1cff6c0fa8652ccf3c719 (patch) | |
tree | 071b12d4c581f73b6590d78eb4ca253f8aba5b8a | |
parent | 4ecda478ec4424f2f0200104d0692ddafa081ce9 (diff) | |
download | poezio-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.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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" |