Skip to content

Commit

Permalink
Fixed bad no. of parameters to part event handler
Browse files Browse the repository at this point in the history
  • Loading branch information
prologic committed Feb 28, 2014
1 parent 17a97c3 commit 7d127a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions irclogger/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 242,7 @@ def join(self, source, channel):
"logger.{0:s}".format(channel)
)

def part(self, source, channel):
def part(self, source, channel, reason=None):
"""Part Event
This event is triggered by the ``IRC`` Protocol Component when a
Expand All @@ -253,7 253,7 @@ def part(self, source, channel):
self.nickmap[source[0]].remove(channel)

self.fire(
Log("*** {0:s} has left {1:s}".format(source[0], channel)),
Log("*** {0:s} has left {1:s} ({2:s})".format(source[0], channel, reason or "")),
"logger.{0:s}".format(channel)
)

Expand Down

0 comments on commit 7d127a9

Please sign in to comment.