class svnNotify: def __init__( self, irc ): self.irc = irc self.channel = "#jpatesttesttest" def handle( self, data ): if data['type'] == 'commit' : self.helpdeskCommit( data ) elif data['type'] == 'raw' : self.irc.tell( self.channel, data['message'] ) else: print data def helpdeskCommit( self, data ): self.irc.tell( self.channel, 'SVN Commit by %s (%s):' % ( data['author'], data['files'] ) ) self.irc.tell( self.channel, data['message'] )