From 89a296d02c831cb2ffc8320fb4e59bfacba2a9a6 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Tue, 23 Feb 2010 21:32:04 +0100 Subject: Pass target to get_repo(). --- gitnoti.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gitnoti.py b/gitnoti.py index 35105ad..130f826 100755 --- a/gitnoti.py +++ b/gitnoti.py @@ -173,7 +173,7 @@ class Bot(irc.IRCClient): self.repeater = LoopingCall(check_notifies, self) self.repeater.start(options.interval) - def get_repo(self, name): + def get_repo(self, name, target): repo = [(k, v) for k, v in repos.iteritems() if os.path.basename(k).startswith(name)] if len(repo) == 1: path = repo[0][0] @@ -216,7 +216,7 @@ class Bot(irc.IRCClient): self.msg(target, 'Usage: %s last REPO' % self.nickname) return - repo = self.get_repo(messagelist[2].lower()) + repo = self.get_repo(messagelist[2].lower(), target) if not repo: return @@ -227,7 +227,7 @@ class Bot(irc.IRCClient): self.msg(target, 'Usage: %s show REPO COMMIT' % self.nickname) return - repo = self.get_repo(messagelist[2].lower()) + repo = self.get_repo(messagelist[2].lower(), target) if not repo: return -- cgit v1.2.3