#NEWLINE# def check_lulz( self , sender , message , channel ) : #NEWLINE# #INDENT# if ( ( channel in self . last_urls ) and ( self . message_count > 0 ) ) : #NEWLINE# #INDENT# vals = { #NEWLINE# #INDENT# 'sender' : self . last_urls [ channel ] [ 'sender' ] , #NEWLINE# 'phrases' : self . phrases , #NEWLINE# #UNINDENT# } #NEWLINE# for ( pattern , score ) in self . influencer_patterns : #NEWLINE# #INDENT# if re . match ( ( pattern % vals ) , message ) : #NEWLINE# #INDENT# self . redis_conn . zincrby ( self . last_urls [ channel ] [ 'url' ] , score )