#NEWLINE# @ internationalizeDocstring #NEWLINE# def vacuum( self , irc , msg , args , channel ) : #NEWLINE# #INDENT# "[<channel>|global]\n\n        Vacuums the database for <channel>.\n        See SQLite vacuum doc here: http://www.sqlite.org/lang_vacuum.html\n        <channel> is only necessary if the message isn't sent in\n        the channel itself.\n        First check if user has the required capability specified in plugin\n        config requireVacuumCapability.\n        " #NEWLINE# capability = self . registryValue ( 'requireVacuumCapability' ) #NEWLINE# if capability : #NEWLINE# #INDENT# if ( not ircdb . checkCapability ( irc . prefix , capability ) ) : #NEWLINE# #INDENT# irc . errorNoCapability ( capability , Raise = True ) #NEWLINE# #UNINDENT# #UNINDENT# db = self . getDb ( channel ) #NEWLINE# cursor = db . cursor ( ) #NEWLINE# cursor . execute ( 'VACUUM' ) #NEWLINE# db . commit ( ) #NEWLINE# irc . replySuccess ( )