Monday, November 08, 2010 at 12:06 AM.
system.verbs.builtins.tcp.im.builtinDrivers.jabber.code.registerHandler
on registerHandler (handlerType, handlerScriptAdr, connection = nil, namespace = "") { <<Changes <<5/14/02; 1:51:34 PM by JB <<Changelog created. if connection == nil { connection = @system.temp.jabber.connection}; local ( handlerAdr = @user.im.jabber.handlers.[string(connection)] ); if not defined ( handlerAdr^ ) { new ( tableType, handlerAdr )}; handlerAdr = @handlerAdr^.[handlerType]; if handlerType == "iq" { if not defined ( handlerAdr^ ) { new ( tableType, handlerAdr )}; handlerAdr^.[namespace] = handlerScriptAdr} else { handlerAdr^ = handlerScriptAdr}}; registerHandler ( "iq", @JabberSuite.sampleMessageHandler, namespace: "jabber:x:test" )
This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.