diff orpg/chat/commands.py @ 87:eb1b275699c4 alpha

Traipse Alpha 'OpenRPG' {090917-01} Traipse is a distribution of OpenRPG that is designed to be easy to setup and go. Traipse also makes it easy for developers to work on code without fear of sacrifice. 'Ornery-Orc' continues the trend of 'Grumpy' and adds fixes to the code. 'Ornery-Orc''s main goal is to offer more advanced features and enhance the productivity of the user. Update Summary: 00: Adds menu changes to draw attention to important updates, errors, or other events. (image info coming soon) Traipse URL is not included in the repos tab and is set as default. 01: Fixes Copy for Windows and Linux (finally!!) users. Fixes incomplete update to Grid and List nodes. Fixes incomplete update to Chat Commands.
author sirebral
date Thu, 17 Sep 2009 03:23:03 -0500
parents 449a8900f9ac
children 910942d07574 dcf4fbe09b70
line wrap: on
line diff
--- a/orpg/chat/commands.py	Thu Sep 17 01:14:48 2009 -0500
+++ b/orpg/chat/commands.py	Thu Sep 17 03:23:03 2009 -0500
@@ -14,6 +14,7 @@
 import orpg.orpg_windows
 import traceback
 
+from orpg.orpgCore import component
 from orpg.tools.orpg_log import logger
 from orpg.tools.decorators import debugging
 
@@ -262,7 +263,7 @@
     @debugging
     def on_dieroller(self, cmdargs):
         args = string.split(cmdargs,None,-1)
-        rm = self.chat.DiceManager
+        rm = component.get('DiceManager')
         try:
             rm.setRoller(args[0])
             self.chat.SystemPost("You have changed your die roller to the <b>\"" + args[0] + "\"</b> roller.")