From de2daac51c8363d969d9fdd801a020c4c16a6abd Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sun, 13 Sep 2015 00:26:34 -0500 Subject: [PATCH] Quick patch to support !link >nick syntax. --- earwigbot/commands/link.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/earwigbot/commands/link.py b/earwigbot/commands/link.py index a54ea51..438e732 100644 --- a/earwigbot/commands/link.py +++ b/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]))