diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-02-23 21:32:04 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-02-23 21:32:04 +0100 |
commit | 89a296d02c831cb2ffc8320fb4e59bfacba2a9a6 (patch) | |
tree | 0929f69a621f31dc37dd6518bb49d5cd65f716f6 | |
parent | 963bb79a026f0b2f8dc07b954180cee33577caf9 (diff) |
Pass target to get_repo().
-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 |