#NEWLINE# def disable( self , irc , msg , args , plugin , command ) : #NEWLINE# #INDENT# '[<plugin>] <command>\n\n        Disables the command <command> for all users (including the owners).\n        If <plugin> is given, only disables the <command> from <plugin>.  If\n        you want to disable a command for most users but not for yourself, set\n        a default capability of -plugin.command or -command (if you want to\n        disable the command in all plugins).\n        ' #NEWLINE# if ( command in ( 'enable' , 'identify' ) ) : #NEWLINE# #INDENT# irc . error ( ( "You can't disable %s." % command ) ) #NEWLINE# return #NEWLINE# #UNINDENT# if plugin : #NEWLINE# #INDENT# if plugin . isCommand ( command ) : #NEWLINE# #INDENT# pluginCommand = ( '%s.%s' % ( plugin . name ( ) , command ) ) #NEWLINE# conf . supybot . commands . disabled ( ) . add ( pluginCommand ) #NEWLINE# plugin . _disabled . add ( command ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# irc . error ( ( '%s is not a command in the %s plugin.' % ( command , plugin . name ( ) ) ) ) #NEWLINE# return #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# conf . supybot . commands . disabled ( ) . add ( command ) #NEWLINE# self . _disabled . add ( command ) #NEWLINE# #UNINDENT# irc . replySuccess ( )