Please note: changing that code to:

PHP Code

		if (strlen($Words) > 500) {
			$mailmessage = $user['USER_DISPLAY_NAME'] . " - " . strlen($Words);
			mail('yourmailaddress@yourprovider.com', 'Forum search engine abuse', $mailmessage);
				$html->not_right($ubbt_lang['NO_SEARCH']);
		}
 

you will get an e-mail message with the offending user and the length of his search string. Change the 'yourmailaddress@yourprovider.com' to your own address.