GitHub: Fix typo and remove debug output.

master
Valentin Lorentz 2012-02-05 19:00:26 +00:00
parent 71326afc96
commit 66f3f1672b
1 changed files with 1 additions and 2 deletions

View File

@ -67,7 +67,7 @@ class GithubCallback(httpserver.SupyHTTPServerCallback):
def doPost(self, handler, path, form):
if not handler.address_string().endswith('.rs.github.com'):
log.warning("""'%s' tryed to act as a web hook for Github,
but is not GitHub.""")
but is not GitHub.""" % handler.address_string())
else:
self.plugin.announce.onPayload(json.loads(form['payload'].value))
@ -156,7 +156,6 @@ class GitHub(callbacks.Plugin):
hidden = len(commits) + 1
payload['commits'] = [last_commit]
for commit in payload['commits']:
print repr(commit)
msg = self._createPrivmsg(channel, payload, commit,
hidden)
irc.queueMsg(msg)