A lil old, but aint your on text and open events wrong?
I mean, should it be
on :TEXT::#: { or on :TEXT::: {
and u can use what ur using now, or
if ($wildtok($1-,$+(,$me,*),1,32)) {
both works I assume.
And aswell, put a . (dot) infront of msg, so it wont show in ur status window xP
As I said, sorry for bringing such a old snippet up lol, just got to see it.