reaction: fix trigger regex to work with non-alphanumeric start/end. nubs/master
authorSpencer Rinehart <anubis@overthemonkey.com>
Mon, 9 Mar 2009 16:07:38 +0000 (12:07 -0400)
committerSpencer Rinehart <anubis@overthemonkey.com>
Mon, 9 Mar 2009 16:47:51 +0000 (12:47 -0400)
commit3838e189aa550cf332a28cbd491ff42db554417c
tree6d3b14b8ce423a3ff5f631b988ba01c6741c0cf2
parent42704b6f5ab3ed9c3451b7fabee40d51d048a76f
reaction: fix trigger regex to work with non-alphanumeric start/end.

only match on word boundaries at an end of a trigger if the character at
that end of the trigger is a word character.  In other words, the
trigger "test" should require word boundaries on each side, but the
trigger "@test" should only require one on the right side.
data/rbot/plugins/reaction.rb