Vertigo wrote:

Well, I don't post too often to the list.  I provide help as I can but
am a little stumped with this issue.  It's not so much a problem as it
is just frustrating.
A builder brought to my attention this evening that when he has a speech
triggered mprog that unless the triggering speech is in all lowercase
the mprog doesn't fire.  I think I have whittled down the options to
something in p_act_trigger().  I'd like the mprog trigger to disregard
the string's case when determining whether or not the string matches the
trigger phrase.


Is there an easy fix for this that someone else has run into?  Again,
not a massively high priority (as I am sure that the flame war that has
been going on this week establishes priority somehow) but I would like
to correct it for the sanity of my builders.
check for your local str_infix function, which is case insensitive, replace strstr with it
so that this line in mp_act_trigger:
       if ( prg->trig_type == type
   &&  strstr( argument, prg->trig_phrase ) != NULL )
becomes
       if ( prg->trig_type == type
 &&  !str_infix( argument, prg->trig_phrase ) )
--
that's just my guess though




Reply via email to