Added a simple quell command to contrib/ for showing how to use a command to launch other commands (in this case with a lower permission than you normally do (including bypassing superuser status).

This commit is contained in:
Griatch 2011-11-03 18:23:45 +01:00
parent e7b46c89b4
commit b6303808ec
3 changed files with 92 additions and 7 deletions

View file

@ -22,7 +22,8 @@ from src.commands.cmdset import CmdSet
from src.commands.default import cmdset_default, cmdset_unloggedin, cmdset_ooc
from game.gamesrc.commands.basecommand import Command
from contrib import menusystem, lineeditor
#from contrib import menusystem, lineeditor
from contrib import misc_commands
class DefaultCmdSet(cmdset_default.DefaultCmdSet):
"""
@ -48,7 +49,7 @@ class DefaultCmdSet(cmdset_default.DefaultCmdSet):
#
#self.add(menusystem.CmdMenuTest())
#self.add(lineeditor.CmdEditor())
self.add(misc_commands.CmdQuell())
class UnloggedinCmdSet(cmdset_unloggedin.UnloggedinCmdSet):
"""