#NEWLINE# def handle( self , sender , match , message ) : #NEWLINE# #INDENT# channel = match . group ( 'channel' ) #NEWLINE# nick = match . group ( 'nick' ) #NEWLINE# if nick : #NEWLINE# #INDENT# self . service . channel_join ( sender , channel ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if nick : #NEWLINE# #INDENT# self . service . actor_add_contact ( sender , nick ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# pass