#NEWLINE# def doKick( self , irc , msg ) : #NEWLINE# #INDENT# irc = self . _getRealIrc ( irc ) #NEWLINE# channel = msg . args [ 0 ] #NEWLINE# if ( channel not in self . registryValue ( 'channels' ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# network = self . _getIrcName ( irc ) #NEWLINE# if ( len ( msg . args ) == 3 ) : #NEWLINE# #INDENT# s = format ( _ ( '%s was kicked by %s on %s (%s)' ) , msg . args [ 1 ] , msg . nick , network , msg . args [ 2 ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# s = format ( _ ( '%s was kicked by %s on %s' ) , msg . args [ 1 ] , msg . nick , network ) #NEWLINE# #UNINDENT# m = self . _msgmaker ( channel , s ) #NEWLINE# self . _sendToOthers ( irc , m )