Originally Posted By: maroon
I just showed you that $rawmsg retains it. The display message begins after the 2nd colon, but as soon as you transfer it to another %variable or send the output through something like $1- or $gettok, the result no longer has the consecutive/leading/trailing spaces in it.


I tried:

if ($regex($rawmsg,$chr(32){15,})) { haltdef }

but that just gave me:
Code:
* /if: ':test!test@2610:111:a20::2 PRIVMSG #test :               15 15 15 15 ' unknown operator (line 14, remote.ini)


in the server window. So then I tried:

if ($chr(32){15,} isin $rawmsg) { haltdef }

but didn't do anything at all, which still wouldn't have checked for leading spaces even if it did.

You mentioned the display message begins after the 2nd colon but that doesn't appear to be consistent since ipv6 adds an extra 4. If you can't keep the spaces storing $rawmsg in a variable, then I couldn't even cut $rawmsg at say "$chan :" and store it in a variable.

Unfortunately my non-scripting self feels even farther away from a solution.

Last edited by beer; 15/10/17 03:16 AM.