#NEWLINE# def net( self , irc , msg , args ) : #NEWLINE# #INDENT# 'takes no arguments\n\n        Returns some interesting network-related statistics.\n        ' #NEWLINE# try : #NEWLINE# #INDENT# elapsed = ( time . time ( ) - self . connected [ irc . getRealIrc ( ) ] ) #NEWLINE# timeElapsed = utils . timeElapsed ( elapsed ) #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# timeElapsed = _ ( 'an indeterminate amount of time' ) #NEWLINE# #UNINDENT# irc . reply ( format ( _ ( 'I have received %s messages for a total of %S.  I have sent %s messages for a total of %S.  I have been connected to %s for %s.' ) , self . recvdMsgs , self . recvdBytes , self . sentMsgs , self . sentBytes , irc . server , timeElapsed ) )