浏览代码

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]))


正在加载...
取消
保存