mIRC Home    About    Download    Register    News    Help

Print Thread
#268645 01/04/21 10:32 PM
Joined: Nov 2004
Posts: 822
J
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
J
Joined: Nov 2004
Posts: 822
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.)

Joined: Dec 2002
Posts: 1,995
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 1,995
Try $istok($2-,WHOX,32)

Joined: Jan 2004
Posts: 2,081
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jan 2004
Posts: 2,081
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: 822
J
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
J
Joined: Nov 2004
Posts: 822
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.

Link Copied to Clipboard