diff orpg/chat/commands.py @ 92:68c7bd272f27 beta

Traipse Beta 'OpenRPG' {090919-00} 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: 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. Fixes Copy for Windows and Linux (finally!!) users. Fixes incomplete update to Grid and List nodes. Fixes incomplete update to Chat Commands. Fixes problems with Remote Image Upload. Fixes Drop and Drag of Minis to Map. CherryPy can now use any image in the webfiles/ folder and sub-folders. CherryPy can now Drop and Drag Minis to the Map. Minor changes to Update Manager's GUI. Expert recommendation warning added to Revision Update. Step down compatibility with open_rpg & component added to orpgCore. Using majority of 'Grumpy' network folder to correct server lag.
author sirebral
date Sat, 19 Sep 2009 06:50:43 -0500
parents 449a8900f9ac
children 910942d07574 dcf4fbe09b70
line wrap: on
line diff
--- a/orpg/chat/commands.py	Wed Sep 09 17:12:59 2009 -0500
+++ b/orpg/chat/commands.py	Sat Sep 19 06:50:43 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.")