Monday, November 08, 2010 at 12:06 AM.

on getHandler (connection, eventType, namespace = "") {
		<<5/14/02; 1:51:34 PM by JB
			<<Changelog created.
	<<This code is written too often to not factor it out. It returns the handler script for the given connection, event type, and namespace, or false if none exists
	try {
		local ( handlerTbl =[string(connection)], handler );
		if eventType == "iq" {
			handler = @handlerTbl^[eventType][namespace]}
		else {
			handler = @handlerTbl^[eventType]};
		if defined ( handler^ ) and defined ( handler^^ ) {
			return handler}
		else {
			return false}}
	else {
		return false}};
dialog.alert(getHandler(@system.temp.jabber.connection, "message", "jabber:iq: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.