Thats looks good … I followed the links you mentioned … I believe I can do the same by using REGEX in my PHP code to achieve the same … what you think ? Something like this…
const ircRegex = /^(?:@([^ ]+) )?(?:[:](\S+) )?(\S+)(?: (?!:)(.+?))?(?: [:](.+))?$/;
I can do something in $data to split my message and my username. I believe.