i think you're using the $query in wrong context, unless it can be worked like that. Trythis tho..
on 1:INPUT:?: {
if ($left($1, 1) !isin $+(/,$readini($mircini, text, commandchar)) {
/echo -ati2 ( $+ $me $+ ) $1-
.raw privmsg $nick $+(:,$1-)
/halt
}
}
on ^*:TEXT:*:?: {
/echo -ti2 $nick ( $+ $nick $+ ) $1-
/haltdef
}
i killed tstamp because the -t parameter is there for that. Also, the input is always going to appear in the active window, so echoing to the query window is more work then -a on the echo.
EDIT:
P.S. you don't need the .pnick stuff in a query as noone can "moderate" it. Much easier to use $nick and $me. Besides, there's no "$chan" identifier.