#NEWLINE# def remove( self , irc , msg , args , channel , numbers ) : #NEWLINE# #INDENT# "[<channel>] <number1> [<number2> <number3>...]\n\n        Removes topics <numbers> from the topic for <channel>  Topics are\n        numbered starting from 1; you can also use negative indexes to refer\n        to topics starting the from the end of the topic.  <channel> is only\n        necessary if the message isn't sent in the channel itself.\n        " #NEWLINE# self . _checkManageCapabilities ( irc , msg , channel ) #NEWLINE# topics = self . _splitTopic ( irc . state . getTopic ( channel ) , channel ) #NEWLINE# numbers = set ( numbers ) #NEWLINE# for n in numbers : #NEWLINE# #INDENT# topics [ n ] = '' #NEWLINE# #UNINDENT# topics = [ topic for topic in topics if ( topic != '' ) ] #NEWLINE# self . _sendTopics ( irc , channel , topics )