mIRC Home    About    Download    Register    News    Help

Print Thread
S
Sableye2
Sableye2
S
Code:
on *:text:*!begin*:#: {
  if (($1 == %c $+ !begin) && (!$var($+(%,$nick),1))) {
    set $+(%,$nick) 50 | msg $chan Thanks for signing up!  You have been given 50 tokens.  Type in !stash
  }
  else {
    msg $chan Sorry, but you already have your 50 tokens.
  }
}


That is a code I have used before. Now instead of setting this variable with $nick I want to use the address.

(!$var($+(%,$mask(address,2)),1)))

Would something like that work? So basically, instead of using $nick, I want to use address 2 (*!*@host).

Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
Use $address($nick,2) in place of $nick


Link Copied to Clipboard