aboutsummaryrefslogtreecommitdiff
path: root/modules/github.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-01-10 13:11:35 +0000
committerGravatar jesopo2019-01-10 13:11:35 +0000
commit86810290f796d23097aec948ab6138b27a5a4b6d (patch)
tree2f62e46750032c0e152a3e749847ab789a43dfc5 /modules/github.py
parentcopypaste fail, `event["args_split"][0]` -> `ref` (github.py) (diff)
signature
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)
Diffstat (limited to 'modules/github.py')
-rw-r--r--modules/github.py2
1 files changed, 1 insertions, 1 deletions
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)