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

system.verbs.builtins.tcp.im.builtinDrivers.aim.code.responderCallbacks.im_in

on IM_IN(adrSelf, screenName, message, flAutoresponse) {
	<<Changes
		<<5/21/02; 11:23:28 PM by JB
			<<Added the searchengine.stripMarkup, and the decoding. Need the xmlAlphaDecode because xml.entityDecode doesn't work for this app; we need correct ' handling and the correct order of string replacements.
	on xmlAlphaDecode (s) {
		<<Changes
			<<5/16/02; 1:30:39 AM by JB
				<<Created. Execute this: (CTRL-/)
				<<xml.entityDecode("&quot;", true)
				<<It *should* produce "":", but due to a bug, it does not. It produces "\"". This kills the RPC encoding, which needs to have that work.
		s = string.replaceall (s, "<", "<");
		s = string.replaceall (s, ">", ">");
		s = string.replaceall (s, """, "\"");
		s = string.replaceall (s, "'", "'" );
		s = string.replaceall (s, "&", "&");
		return s};
	message = searchengine.stripMarkup(message);
	message = xml.entityDecode(message);
	message = xmlAlphaDecode(message);
	tcp.im.server("aim", screenName, message)} // original script is just this line



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.