Explorar el Código

'nickname: command' works if delimited by a period.

tags/v0.1^2
Ben Kurtovic hace 12 años
padre
commit
68f111c7d6
Se han modificado 1 ficheros con 9 adiciones y 0 borrados
  1. +9
    -0
      earwigbot/irc/data.py

+ 9
- 0
earwigbot/irc/data.py Ver fichero

@@ -83,6 +83,15 @@ class Data(object):
self._command = self.args.pop(0).lower()
except IndexError:
self._command = ""
else:
try:
if self.msg[-1] == "." and self.msg[-2] != ".":
if self.args:
self.args[-1] = self.args[-1][:-1]
else:
self._command = self.command[:-1]
except IndexError:
pass

def _parse_kwargs(self):
"""Parse keyword arguments embedded in self.args.


Cargando…
Cancelar
Guardar