瀏覽代碼

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

tags/v0.1^2
Ben Kurtovic 12 年之前
父節點
當前提交
68f111c7d6
共有 1 個檔案被更改,包括 9 行新增0 行删除
  1. +9
    -0
      earwigbot/irc/data.py

+ 9
- 0
earwigbot/irc/data.py 查看文件

@@ -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.


Loading…
取消
儲存