[bfprog] Unregistering Handlers

"Einar S. Idsø" esi at itk.ntnu.no
Sat Jul 23 14:34:59 PDT 2005


Like Steven said, this method don't seem to exist. I don't know what
technique Steven uses in his Modmanager, though I am looking forward to
seeing his work, but, depending on why you need to unregister the event
handler, you might get by by simply reassigning the function being
called to do absolutely nothing? It would still incur the time to call,
obviously, but just let it pass/return immediately.

You could use a simple dummy-function for this which takes nothing but
key/val arguments, so that each and every function you want to
cancel/unregister can be redirected to this single dummy-function.

Einar

Forrest Thiessen wrote:
> I'm working on a fairly esoteric BF2 Python problem that requires me to
> be able to UNregister a previously registered event handler. There's a
> host.unregisterGameStatusHandler method that can be used to unregister
> game status handlers, but I can't find anything equivalent for normal
> handlers that were registered with host.registerHandler.
> 
> Anyone have any ideas?
> 
> --Forrest (aka "Woody")
> 
> _______________________________________________
> BFProg mailing list
> BFProg at lists.matureasskickers.net
> http://lists.matureasskickers.net/mailman/listinfo/bfprog
> 
> 


More information about the BFProg mailing list