瀏覽代碼

Quick patch to support !link >nick syntax.

tags/v0.2
Ben Kurtovic 9 年之前
父節點
當前提交
de2daac51c
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. +4
    -0
      earwigbot/commands/link.py

+ 4
- 0
earwigbot/commands/link.py 查看文件

@@ -44,6 +44,10 @@ class Link(Command):
self.reply(data, links.encode("utf8"))

elif data.command == "link":
if data.args and data.args[0].startswith(">"):
nick = data.args.pop(0)[1:]
data._nick = nick # XXX: hack - should be generally supported

if not data.args:
if data.chan in self.last:
links = u" , ".join(self.parse_line(self.last[data.chan]))


Loading…
取消
儲存