From 96be66828c4d615ca3c0b58d267662d684665872 Mon Sep 17 00:00:00 2001 From: Griatch Date: Tue, 31 Aug 2010 11:24:08 +0000 Subject: [PATCH] Added some functionality to command 'get' to match wiki tutorial. --- game/gamesrc/commands/default/general.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/game/gamesrc/commands/default/general.py b/game/gamesrc/commands/default/general.py index 2bc4c5998..8feb5eeff 100644 --- a/game/gamesrc/commands/default/general.py +++ b/game/gamesrc/commands/default/general.py @@ -89,8 +89,7 @@ class CmdNick(MuxCommand): alias[/switches] = [] nick '' - Switches: - obj - alias an object + Switches: obj - alias an object player - alias a player clearall - clear all your aliases list - show all defined aliases @@ -323,8 +322,10 @@ class CmdGet(MuxCommand): caller.msg("You can't get that.") return if not has_perm(caller, obj, 'get'): - #TODO - have the object store fail messages? - caller.msg("You can't get that.") + if obj.db.get_err_msg: + caller.msg(obj.db.get_err_msg) + else: + caller.msg("You can't get that.") return obj.move_to(caller, quiet=True)