#NEWLINE# @ internationalizeDocstring #NEWLINE# def factinfo( self , irc , msg , args , channel , key ) : #NEWLINE# #INDENT# "[<channel>] <factoid key>\n\n        Returns the various bits of info on the factoid for the given key.\n        <channel> is only necessary if the message isn't sent in the channel\n        itself.\n        " #NEWLINE# s = ( key + ': ' ) #NEWLINE# info = self . db . getFactinfo ( channel , key ) #NEWLINE# if ( not info ) : #NEWLINE# #INDENT# irc . error ( format ( _ ( 'No such factoid: %q' ) , key ) ) #NEWLINE# return #NEWLINE# #UNINDENT# ( created_by , created_at , modified_by , modified_at , last_requested_by , last_requested_at , requested_count , locked_by , locked_at ) = info #NEWLINE# created_by = plugins . getUserName ( created_by ) #NEWLINE# created_at = time . strftime ( conf . supybot . reply . format . time ( ) , time . localtime ( int ( created_at ) ) ) #NEWLINE# s += format ( _ ( 'Created by %s on %s.' ) , created_by , created_at ) #NEWLINE# if ( modified_by is not None ) : #NEWLINE# #INDENT# modified_by = plugins . getUserName ( modified_by ) #NEWLINE# modified_at = time . strftime ( conf . supybot . reply . format . time ( ) , time . localtime ( int ( modified_at ) ) ) #NEWLINE# s += format ( _ ( ' Last modified by %s on %s.' ) , modified_by , modified_at ) #NEWLINE# #UNINDENT# if ( last_requested_by is not None ) : #NEWLINE# #INDENT# last_by = requested_count #NEWLINE# last_at = time . strftime ( conf . supybot . reply . format . time ( ) , time . localtime ( int ( last_requested_at ) ) ) #NEWLINE# req_count = requested_count #NEWLINE# s += format ( _ ( ' Last requested by %s on %s, requested %n.' ) , last_by , last_at , ( requested_count , 'time' ) ) #NEWLINE# #UNINDENT# if ( locked_at is not None ) : #NEWLINE# #INDENT# lock_at = time . strftime ( conf . supybot . reply . format . time ( ) , time . localtime ( int ( locked_at ) ) ) #NEWLINE# lock_by = plugins . getUserName ( locked_by ) #NEWLINE# s += format ( _ ( ' Locked by %s on %s.' ) , lock_by , lock_at ) #NEWLINE# #UNINDENT# irc . reply ( s )