mIRC Home    About    Download    Register    News    Help

Print Thread
#149649 21/05/06 11:53 PM
Joined: Oct 2005
Posts: 98
S
Babel fish
OP Offline
Babel fish
S
Joined: Oct 2005
Posts: 98
How would this be done, if I want to auto +hop let's say:
nick@somehost.com

I was thinking of a small script.

#149650 22/05/06 12:16 AM
Joined: Apr 2006
Posts: 400
K
Fjord artisan
Offline
Fjord artisan
K
Joined: Apr 2006
Posts: 400
well..you could do this:
Code:
on *:JOIN:#chan: {
  if (nick@somehost.com isin $address) {
    commands to do
  }
}


-Kurdish_Assass1n
#149651 22/05/06 12:51 AM
Joined: May 2005
Posts: 449
Fjord artisan
Offline
Fjord artisan
Joined: May 2005
Posts: 449
I don't know a whole lot about $address, but I tried echoing $address from the editbox and I didn't get anything. I think you might need the nick in there, and a number indicating what form you want the address in, like $address(Blake,4). I don't know if I just haven't come across the right form, but it seems like each of those numbers either removes the first character of my ident or removes the ident completely. You'll have to test that out and see what you come up with.

On a side note, I'd like to apologize for my posts on a thread the other day. It was just a bad day for many reasons, not that that gives me any excuse. Thanks.

#149652 22/05/06 01:26 AM
Joined: May 2006
Posts: 9
B
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
B
Joined: May 2006
Posts: 9
Quote:
How would this be done, if I want to auto +hop let's say:
nick@somehost.com

I was thinking of a small script.


You *could* just set a userlevel (auser AHOP NICK!User@Host) and then use a

Code:
on AHOP:join:#Chan:{ 
Cmds
}

#149653 23/05/06 10:46 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Yes, user level is perhaps the best option.

Quote:
well..you could do this:
Code:
on *:JOIN:#chan: {
  if (nick@somehost.com isin $address) {
    commands to do
  }
}


As for that, it should look something like this:
Code:
on *:JOIN:#chan: {
  if (nick!ident@host.com isin $address($nick,5)) {
    commands to do
  }
}


That is if you want an exact match on the nick (not a partial match). If you want some other match, do "/help $mask" without quotes and you'll see the numbers for each kind of address mask. Replace the 5 with the number you want and format the address that it's matching so it matches the mask type you're looking for.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard