#NEWLINE# def restore( self , irc , msg , args , channel ) : #NEWLINE# #INDENT# "[<channel>]\n\n        Restores the topic to the last topic set by the bot.  <channel> is only\n        necessary if the message isn't sent in the channel itself.\n        " #NEWLINE# self . _checkManageCapabilities ( irc , msg , channel ) #NEWLINE# try : #NEWLINE# #INDENT# topics = self . lastTopics [ channel ] #NEWLINE# if ( not topics ) : #NEWLINE# #INDENT# raise KeyError #NEWLINE# #UNINDENT# #UNINDENT# except KeyError : #NEWLINE# #INDENT# irc . error ( format ( _ ( "I haven't yet set the topic in %s." ) , channel ) ) #NEWLINE# return #NEWLINE# #UNINDENT# self . _sendTopics ( irc , args , topics )