diff options
-rwxr-xr-x | gitnoti.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |