rpartition (instead of partition) #number for github issues/pull, so that we

don't have to specify "#" when we're got a default repo (github.py)
This commit is contained in:
jesopo 2019-01-10 13:11:35 +00:00
parent 55b61649f4
commit 86810290f7

View file

@ -40,7 +40,7 @@ COMMENT_ACTIONS = {
"help": "Set the default github repo for the current channel"})
class Module(ModuleManager.BaseModule):
def _parse_ref(self, channel, ref):
repo, _, number = ref.partition("#")
repo, _, number = ref.rpartition("#")
if not repo:
repo = channel.get_setting("github-default-repo", None)