mirror of
https://github.com/evennia/evennia.git
synced 2026-03-27 18:26:32 +01:00
Added MSDP/GMCP wrappers Inputfuncs as per #924. Not fully tested yet.
This commit is contained in:
parent
c093fd3880
commit
0ffec10dd0
2 changed files with 49 additions and 34 deletions
|
|
@ -90,9 +90,8 @@ class MonitorHandler(object):
|
|||
to_delete = []
|
||||
if obj in self.monitors and fieldname in self.monitors[obj]:
|
||||
for idstring, (callback, persistent, kwargs) in self.monitors[obj][fieldname].iteritems():
|
||||
kwargs.update({"obj": obj, "fieldname": fieldname})
|
||||
try:
|
||||
callback(**kwargs)
|
||||
callback(obj=obj, fieldname=fieldname, **kwargs)
|
||||
except Exception:
|
||||
to_delete.append((obj, fieldname, idstring))
|
||||
logger.log_trace("Monitor callback was removed.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue