The easiest way to handle this is by giving all commands some specific prefix, such as !. That way you can just match !* in a single on text event and very easily do whatever's necessary from there. It's simple to work with and efficient because you're using a straightforward match which will filter out 99.9% of all regular IRC chat without having to process the entire line.


Spelling mistakes, grammatical errors, and stupid comments are intentional.