primerib1 Posted December 7, 2022 Share Posted December 7, 2022 (edited) I think we will all appreciate a version of llListen() that matches for prefixes. Maybe the signature will be: integer llListenPrefix( integer channel, string name, key id, string prefix, integer flags ); The flags can be made up of a bitfield such as: PREFIX_CASE_SENSITIVE = 0x1; PREFIX_NO_AUTOTRIM = 0x2; So the default, 0x0, means a case insensitive matching done on a trimmed message. Which is kind of what's needed by 80-90% of scripts that needs prefixes. This reduces the amount of code needed inside the listen() event, as the code now no longer needs to implement the boilerplate code of trimming and casefolding. But at the same time also reduces scripts needing to wake up just to go to sleep again because whatever is said in the channel being listened is "not for them". What do you think? Edited December 7, 2022 by primerib1 Formatting, mostly 2 Link to comment Share on other sites More sharing options...
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now