summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgitnoti.py6
1 files 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