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

system.verbs.builtins.tcp.im.builtinResponders.blogger.script

on script (driverName, screenname, message) {
	<<Changes
		<<8/11/02; 7:32:19 PM by JES
			<<Re-write.
	local (method = string.nthField (message, " ", 2));
	local (adrresponder = parentOf (this^));
	local (adrmethods = @adrresponder^.methods);
	if defined (adrmethods^.[method]) {
		try {
			local (result = adrmethods^.[method] (drivername, screenname, message) );
			tcp.im.send (driverName, screenname, result)}
		else {
			tcp.im.send (driverName, screenname, "Can't call the \"" + method + "\" method because an error occurred: \"" + tcp.im.utilities.cleanError (tryerror) + "\"." )}}
	else {
		if defined (adrresponder^.data.helpText) {
			tcp.im.send (driverName, screenname, string (adrresponder^.data.helpText))}
		else {
			tcp.im.send (driverName, screenname, string (user.im.prefs.sorryMessage))}}}



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.