#NEWLINE# @ handler ( 'notice' , 'privmsg' ) #NEWLINE# def _on_notice_or_privmsg( self , event , source , target , message ) : #NEWLINE# #INDENT# ( nick , ident , host ) = source #NEWLINE# if ( event . name == 'notice' ) : #NEWLINE# #INDENT# self . lines . append ( Text ( ( '-%s- %s' % ( nick , message ) ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . lines . append ( Text ( ( '<%s> %s' % ( nick , message ) ) ) )