From d6506eeb4d3bc0a8fa545445a13d98f9c8ab78da Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Wed, 2 Sep 2015 23:42:05 -0700 Subject: [PATCH] !stars: If no username is provided, assume it's Earwig's --- commands/stars.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/commands/stars.py b/commands/stars.py index a379f3b..fd90c3d 100644 --- a/commands/stars.py +++ b/commands/stars.py @@ -39,6 +39,9 @@ class Stars(Command): return repo = data.args[0] + if '/' not in repo: + # Assume we're talking about an Earwig repo + repo = 'earwig/' + repo info = self.get_repo(repo) if info is None: self.reply(data, "Repository not found. Is it private?")