@@ -0,0 +1,1435 @@
+# Copyright (c) 2013-2014 Molly White%0A#%0A# Permission is hereby granted, free of charge, to any person obtaining a copy of this software%0A# and associated documentation files (the %22Software%22), to deal in the Software without%0A# restriction, including without limitation the rights to use, copy, modify, merge, publish,%0A# distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the%0A# Software is furnished to do so, subject to the following conditions:%0A#%0A# The above copyright notice and this permission notice shall be included in all copies or%0A# substantial portions of the Software.%0A#%0A# THE SOFTWARE IS PROVIDED %22AS IS%22, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING%0A# BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND%0A# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,%0A# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,%0A# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.%0A%0Afrom plugins.util import admin%0A%0A%0A@admin(%22set%22)%0Adef setcommand(m):%0A    %22%22%22Adjust the settings on a command.%22%22%22%0A    if len(m.line) %3C 3:%0A        m.bot.private_message(m.location, %22Please format the command: !set %5Bcommand%5D %5Bsetting%5D%22)%0A    else:%0A        m.bot.command_settings%5Bm.line%5B1%5D.lower()%5D = m.line%5B2%5D.lower()%0A    print(m.bot.command_settings)%0A

Allow command settings to be saved