#NEWLINE# def list( self , irc , msg , args , channel ) : #NEWLINE# #INDENT# "[<channel>]\n\n        Returns a list of the topics in <channel>, prefixed by their indexes.\n        Mostly useful for topic reordering.  <channel> is only necessary if the\n        message isn't sent in the channel itself.\n        " #NEWLINE# topics = self . _splitTopic ( irc . state . getTopic ( channel ) , channel ) #NEWLINE# L = [ ] #NEWLINE# for ( i , t ) in enumerate ( topics ) : #NEWLINE# #INDENT# L . append ( format ( _ ( '%i: %s' ) , ( channel + 1 ) , utils . str . ellipsisify ( t , 30 ) ) ) #NEWLINE# #UNINDENT# s = utils . str . commaAndify ( L ) #NEWLINE# irc . reply ( s )