Fix dipatching of messages. Paired w/ enus.linden

This commit is contained in:
joshua.linden
2009-06-05 22:00:36 +00:00
committed by Salad Dais
parent 70c9d342c4
commit e9e91d16b1
2 changed files with 5 additions and 3 deletions

View File

@@ -155,8 +155,10 @@ class UDPDispatcher(object):
if host.is_ok() == False:
return
packet = Message(message.name)
packet.blocks = message.blocks
if isinstance(message,Message):
packet = message
else:
packet = message()
# enable monitoring of outgoing packets
if self.settings.HANDLE_PACKETS:

View File

@@ -10,7 +10,7 @@ from pyogp.lib.base.datatypes import UUID
from pyogp.lib.base.exc import *
# pyogp messaging
#from pyogp.lib.base.message.packets import *
from pyogp.lib.base.message.packets import *
from pyogp.lib.base.message.message_handler import MessageHandler
# utilities