system warnings with aknowledge

This commit is contained in:
John Loehrlein 2009-03-18 18:00:45 +00:00
parent 3d8079f054
commit c195f770ea
2 changed files with 11 additions and 2 deletions

View File

@ -626,6 +626,13 @@ class ClientRepositoryBase(ConnectionRepository):
self.notify.info('Message from server: %s' % (message))
return message
def handleSystemMessageAknowledge(self, di):
# Got a system message from the server.
message = di.getString()
self.notify.info('Message with aknowledge from server: %s' % (message))
messenger.send("system message aknowledge", [message])
return message
def getObjectsOfClass(self, objClass):
""" returns dict of doId:object, containing all objects
that inherit from 'class'. returned dict is safely mutable. """

View File

@ -85,6 +85,8 @@ MsgName2Id = {
'CLIENT_GET_FRIEND_LIST_EXTENDED_RESP': 116,
'CLIENT_SET_FIELD_SENDABLE': 120,
'CLIENT_SYSTEMMESSAGE_AKNOWLEDGE': 123,
}
# create id->name table for debugging