#NEWLINE# def seenWildcard( self , channel , nick ) : #NEWLINE# #INDENT# nicks = ircutils . IrcSet ( ) #NEWLINE# nickRe = re . compile ( ( '^%s$' % '.*' . join ( nick . split ( '*' ) ) ) , re . I ) #NEWLINE# for ( searchChan , searchNick ) in self . keys ( ) : #NEWLINE# #INDENT# if isinstance ( searchNick , int ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# if ircutils . strEqual ( searchChan , channel ) : #NEWLINE# #INDENT# if ( nickRe . search ( L ) is not None ) : #NEWLINE# #INDENT# nicks . add ( searchNick ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# L = [ [ nick , self . seen ( channel , nick ) ] for nick in nicks ] #NEWLINE# def negativeTime( x ) : #NEWLINE# #INDENT# return ( - x [ 1 ] [ 0 ] ) #NEWLINE# #UNINDENT# utils . sortBy ( negativeTime , L ) #NEWLINE# return L