Skip to content
Browse files

Handle None sources for on_pubnotice and updated AUTHORS file.

  • Loading branch information...
1 parent c6bc811 commit 6cec23ec55c1e6589fc0163e28389c1472230c19 @jk0 committed Feb 6, 2012
Showing with 10 additions and 4 deletions.
  1. +4 −2 .gitignore
  2. +1 −0 AUTHORS
  3. +4 −1 pyhole/irc.py
  4. +1 −1 pyhole/version.py
View
6 .gitignore
@@ -6,5 +6,7 @@
*.conf
.DS_Store
.coverage
-docs/_build/*
-build/
+docs/_build
+build
+dist
+irc_pyhole.egg-info
View
1 AUTHORS
@@ -1,3 +1,4 @@
+Andrew Kraut <akraut@gmail.com>
Chris Behrens <cbehrens@codestud.com>
Johannes Erdfelt <johannes@erdfelt.com>
John Dickinson <me@not.mn>
View
5 pyhole/irc.py
@@ -334,7 +334,10 @@ def on_privnotice(self, _connection, event):
def on_pubnotice(self, _connection, event):
"""Handle public notices."""
target = event.target()
- source = irclib.nm_to_n(event.source())
+ if event.source() is not None:
+ source = irclib.nm_to_n(event.source())
+ else:
+ source = None
msg = event.arguments()[0]
self.log.info(unicode("-%s- <%s> %s" % (target, source, msg),
"utf-8"))
View
2 pyhole/version.py
@@ -20,7 +20,7 @@
import sys
-__VERSION__ = "0.6.1"
+__VERSION__ = "0.6.2"
def current_git_hash():

0 comments on commit 6cec23e

Please sign in to comment.
Something went wrong with that request. Please try again.