#NEWLINE# def monitor( subcommand , nicks = None , prefix = '' , msg = None ) : #NEWLINE# #INDENT# if conf . supybot . protocols . irc . strictRfc ( ) : #NEWLINE# #INDENT# for nick in nicks : #NEWLINE# #INDENT# assert isNick ( nick ) , repr ( nick ) #NEWLINE# #UNINDENT# assert ( subcommand in '+-CLS' ) #NEWLINE# if ( subcommand in 'CLS' ) : #NEWLINE# #INDENT# assert ( nicks is None ) #NEWLINE# #UNINDENT# #UNINDENT# if ( prefix and ( not prefix ) ) : #NEWLINE# #INDENT# prefix = msg . prefix #NEWLINE# #UNINDENT# if ( not isinstance ( nicks , str ) ) : #NEWLINE# #INDENT# nicks = ',' . join ( nicks ) #NEWLINE# #UNINDENT# return IrcMsg ( prefix = prefix , command = 'MONITOR' , args = ( subcommand , nicks ) , msg = msg )