From 86810290f796d23097aec948ab6138b27a5a4b6d Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 10 Jan 2019 13:11:35 +0000 Subject: [PATCH] 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) --- modules/github.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/github.py b/modules/github.py index 17ef37f9..c05ef99f 100644 --- a/modules/github.py +++ b/modules/github.py @@ -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)