mIRC Home    About    Download    Register    News    Help

Print Thread
help with $mask(address,type) #164195 09/11/06 02:44 AM
Joined: May 2006
Posts: 87
S
Sableye2 Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: May 2006
Posts: 87
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).

Re: help with $mask(address,type) #164196 09/11/06 03:31 AM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Use $address($nick,2) in place of $nick


Invision Support
#Invision on irc.irchighway.net