diff options
| author | 2019-01-10 13:11:35 +0000 | |
|---|---|---|
| committer | 2019-01-10 13:11:35 +0000 | |
| commit | 86810290f796d23097aec948ab6138b27a5a4b6d (patch) | |
| tree | 2f62e46750032c0e152a3e749847ab789a43dfc5 /modules/github.py | |
| parent | copypaste 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.py | 2 |
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) |
