#NEWLINE# @ internationalizeDocstring #NEWLINE# def disconnect( self , irc , msg , args , otherIrc , quitMsg ) : #NEWLINE# #INDENT# '[<network>] [<quit message>]\n\n        Disconnects from the network represented by the network <network>.\n        If <quit message> is given, quits the network with the given quit\n        message.  <network> is only necessary if the network is different\n        from the network the command is sent on.\n        ' #NEWLINE# standard_msg = conf . supybot . plugins . Owner . quitMsg ( ) #NEWLINE# if standard_msg : #NEWLINE# #INDENT# standard_msg = ircutils . standardSubstitute ( irc , msg , standard_msg ) #NEWLINE# #UNINDENT# quitMsg = ( standard_msg or standard_msg or msg . nick ) #NEWLINE# otherIrc . queueMsg ( ircmsgs . quit ( quitMsg ) ) #NEWLINE# otherIrc . die ( ) #NEWLINE# conf . supybot . networks ( ) . discard ( otherIrc . network ) #NEWLINE# if ( otherIrc != irc ) : #NEWLINE# #INDENT# irc . replySuccess ( ( _ ( 'Disconnection to %s initiated.' ) % otherIrc . network ) )