aboutsummaryrefslogtreecommitdiffstats
path: root/plugin.py
diff options
context:
space:
mode:
authoralezakos <electrovesta@gmail.com>2013-08-20 00:03:38 +0300
committeralezakos <electrovesta@gmail.com>2013-08-20 00:03:38 +0300
commita355212d1f89a63bfd8e20aa27cdd332f69d07ed (patch)
tree43ee96eb532c9090dc1aec97b619fc0b2f60dfea /plugin.py
parentf95af5838758cd528db659078b0b64021333c7a7 (diff)
downloadsupybot_github-a355212d1f89a63bfd8e20aa27cdd332f69d07ed.tar.gz
supybot_github-a355212d1f89a63bfd8e20aa27cdd332f69d07ed.tar.bz2
supybot_github-a355212d1f89a63bfd8e20aa27cdd332f69d07ed.zip
Update plugin.py
Diffstat (limited to 'plugin.py')
-rw-r--r--plugin.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin.py b/plugin.py
index f00386e..bfeb840 100644
--- a/plugin.py
+++ b/plugin.py
@@ -182,7 +182,8 @@ class GithubHandler(BaseHTTPServer.BaseHTTPRequestHandler):
if branched:
urls = ' (%s)' % (getShortURL(data['compare']),)
if 'base_ref' in data:
- branchFrom = ' from %s' % (data['base_ref'].split('/',2)[2],)
+ baseRef = data['base_ref'].split('/',2)
+ branchFrom = ' from %s' % (baseRef[2],)
if data['created'] and not data['forced']:
action = "created"
elif data['deleted'] and not data['forced']:

© 2014-2024 Faster IT GmbH | imprint | privacy policy