#NEWLINE# def kicks( channels , nicks , s = '' , prefix = '' , msg = None ) : #NEWLINE# #INDENT# 'Returns a KICK to kick each of nicks from channel with the message msg.\n    ' #NEWLINE# if isinstance ( channels , str ) : #NEWLINE# #INDENT# channels = [ channels ] #NEWLINE# #UNINDENT# if conf . supybot . protocols . irc . strictRfc ( ) : #NEWLINE# #INDENT# assert areChannels ( channels ) , repr ( channels ) #NEWLINE# assert areNicks ( nicks ) , repr ( nicks ) #NEWLINE# #UNINDENT# if ( msg and ( not prefix ) ) : #NEWLINE# #INDENT# prefix = msg . prefix #NEWLINE# #UNINDENT# if ( minisix . PY2 and isinstance ( s , unicode ) ) : #NEWLINE# #INDENT# s = s . encode ( 'utf8' ) #NEWLINE# #UNINDENT# assert isinstance ( s , str ) #NEWLINE# if s : #NEWLINE# #INDENT# for channel in channels : #NEWLINE# #INDENT# return IrcMsg ( prefix = prefix , command = 'KICK' , args = ( channel , ',' . join ( nicks ) , s ) , msg = msg ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# for channel in channels : #NEWLINE# #INDENT# return IrcMsg ( prefix = prefix , command = 'KICK' , args = ( channel , ',' . join ( nicks ) ) , msg = msg )