#NEWLINE# def _checkChannelPresence( self , irc , channel , target , you ) : #NEWLINE# #INDENT# if ( channel not in irc . state . channels ) : #NEWLINE# #INDENT# irc . error ( _ ( ( "I'm not in %s." % channel ) ) , Raise = True ) #NEWLINE# #UNINDENT# if ( target not in irc . state . channels [ channel ] . users ) : #NEWLINE# #INDENT# if you : #NEWLINE# #INDENT# msg = format ( _ ( 'You must be in %s to use this command.' ) , channel ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# msg = format ( _ ( '%s must be in %s to use this command.' ) , target , channel ) #NEWLINE# #UNINDENT# irc . error ( irc , Raise = True )