Replies (2)

The above script does not handle messages which begin with a colon, swallowing them all as part of the delimiter between the channel message and the PRIVMSG prefix. It also condenses all later consecutive colons into a single colon. The solution is to use $pos to find the location of the 1st colon, then use the string following that.