mIRC Home    About    Download    Register    News    Help

Print Thread
#268645 01/04/21 10:32 PM
Joined: Nov 2004
Posts: 842
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
Trying to figure out which networks support WHOX for something so I was trying to add a simple hash table.

Anyway, long story short...

Code
raw 005:*:{
  if ($istok(WHOX,$2-,32)) { hadd -m WHOX $network 1 }
}


...isn't adding anything (after doing /version) and I'm at a loss of why. (It's in a fresh script file.)


What do you do at the end of the world? Are you busy? Will you save us?
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031
Try $istok($2-,WHOX,32)

Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
See what happens with your parameters in a different order

Code
raw 005:*:{
  if ($istok($2-,WHOX,32)) { hadd -sm WHOX $network 1 }
}

Joined: Nov 2004
Posts: 842
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
Ah, whoops. I had the wrong ordering. (It's been a while since I've done this.)

lol, thanks.

Last edited by Jigsy; 02/04/21 12:53 AM.

What do you do at the end of the world? Are you busy? Will you save us?

Link Copied to Clipboard