#NEWLINE# def swap( self , irc , msg , args , channel , first , second ) : #NEWLINE# #INDENT# "[<channel>] <first topic number> <second topic number>\n\n        Swaps the order of the first topic number and the second topic number.\n        <channel> is only necessary if the message isn't sent in the channel\n        itself.\n        " #NEWLINE# self . _checkManageCapabilities ( irc , msg , channel ) #NEWLINE# topics = self . _splitTopic ( irc . state . getTopic ( channel ) , channel ) #NEWLINE# if ( first == second ) : #NEWLINE# #INDENT# irc . error ( _ ( 'I refuse to swap the same topic with itself.' ) ) #NEWLINE# return #NEWLINE# #UNINDENT# t = topics [ first ] #NEWLINE# topics [ first ] = topics [ second ] #NEWLINE# topics [ second ] = t #NEWLINE# self . _sendTopics ( args , channel , topics )