/sockread -tN - 17/06/15 03:44 PM
This is pretty common and happen pretty often, you read something from a socket and you immediately tokenize it, usually with space:
I suggest having a new switch to directly fill $1- instead of using a %variable:
Code:
on *:sockread:name:{ var %a sockread %a if (!$sockbr) return tokenize 32 %a if ($1 == stuff) .. }
Code:
on *:sockread:name:{ sockread -t32 if (!$sockbr) return if ($1 == stuff) .. }