GitHub: Fix typo and remove debug output.
This commit is contained in:
parent
71326afc96
commit
66f3f1672b
@ -67,7 +67,7 @@ class GithubCallback(httpserver.SupyHTTPServerCallback):
|
|||||||
def doPost(self, handler, path, form):
|
def doPost(self, handler, path, form):
|
||||||
if not handler.address_string().endswith('.rs.github.com'):
|
if not handler.address_string().endswith('.rs.github.com'):
|
||||||
log.warning("""'%s' tryed to act as a web hook for Github,
|
log.warning("""'%s' tryed to act as a web hook for Github,
|
||||||
but is not GitHub.""")
|
but is not GitHub.""" % handler.address_string())
|
||||||
else:
|
else:
|
||||||
self.plugin.announce.onPayload(json.loads(form['payload'].value))
|
self.plugin.announce.onPayload(json.loads(form['payload'].value))
|
||||||
|
|
||||||
@ -156,7 +156,6 @@ class GitHub(callbacks.Plugin):
|
|||||||
hidden = len(commits) + 1
|
hidden = len(commits) + 1
|
||||||
payload['commits'] = [last_commit]
|
payload['commits'] = [last_commit]
|
||||||
for commit in payload['commits']:
|
for commit in payload['commits']:
|
||||||
print repr(commit)
|
|
||||||
msg = self._createPrivmsg(channel, payload, commit,
|
msg = self._createPrivmsg(channel, payload, commit,
|
||||||
hidden)
|
hidden)
|
||||||
irc.queueMsg(msg)
|
irc.queueMsg(msg)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user