#NEWLINE# def pubmsg( self , connection , event ) : #NEWLINE# #INDENT# self . debug ( '%s -> %s: %r' , event . source ( ) , event . target ( ) , event . arguments ( ) ) #NEWLINE# try : #NEWLINE# #INDENT# ( nick , txt ) = map ( str . strip , event . arguments ( ) [ 0 ] . split ( ':' ) ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# nick = nick . split ( '!' ) [ 0 ] #NEWLINE# if ( nick == self . nick ) : #NEWLINE# #INDENT# self . info ( 'routing public message from %s' , event . source ( ) ) #NEWLINE# c = Connection ( self , event . source ( ) . split ( '!' ) [ 0 ] ) #NEWLINE# msg = self . message ( c . identity , txt ) #NEWLINE# msg . irc_channel = event . target ( ) #NEWLINE# self . route ( msg )