How is ChanServ doing it? What I'm looking to do is "tell" when a message is indented (to intrepret it as a command). There aren't any multiple spaces so far as I can tell and there's no indent character either.

To elaborate a little on the problem, when I "read" each of those indented lines, I'm seeing no spaces at all before those words.

**UPDATE: PROBLEM SOLVED. This was tough but here's what's happening. When you go to grab the text that ChanServ sends you, what do you think of? $1-

Trouble is, what does $1- start with? It starts with $1. And what is $1? It's the first space-delimited parameter, meaning TEXT. You need more than text, you need the whole thing.

The solution is to use $rawmsg, not $1-, and pull the text out of that field.

I found between 2 and 4 $null characters (or ascii-32 characters) depending on which NickServ/ChanServ you're talking to.

Last edited by MegaZeroX; 18/01/11 11:30 PM.