Browse Source

!stars: If no username is provided, assume it's Earwig's

pull/15/head
Kunal Mehta 9 years ago
parent
commit
d6506eeb4d
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      commands/stars.py

+ 3
- 0
commands/stars.py View File

@@ -39,6 +39,9 @@ class Stars(Command):
return return


repo = data.args[0] repo = data.args[0]
if '/' not in repo:
# Assume we're talking about an Earwig repo
repo = 'earwig/' + repo
info = self.get_repo(repo) info = self.get_repo(repo)
if info is None: if info is None:
self.reply(data, "Repository not found. Is it private?") self.reply(data, "Repository not found. Is it private?")


Loading…
Cancel
Save