Improved pattern matching for teh-borg in chan