mIRC Homepage
Posted By: Hindsight address - nick identifiers - 16/02/03 11:03 PM
ok ive looked in /help, is there not a way to locate a nick from an address, ive only seen it the other way around
Posted By: hyp0r Re: address - nick identifiers - 16/02/03 11:25 PM
As far as I know there is no way of doing this. For one thing multiple people could be coming from the same address. What's the purpose of this? Maybe there is another way to get around it.
Posted By: starbucks_mafia Re: address - nick identifiers - 16/02/03 11:53 PM
Assuming that the address is in the Internal Address List (IAL) you can use $ial and $ialchan with the .nick property to return nicknames based on addresses.
Posted By: hyp0r Re: address - nick identifiers - 17/02/03 12:11 AM
yup... look at that it works. Learn something new everyday, I threw some code together and it actually worked:
Code:
alias nicklookup {
  set %address $?="address"
  set %total $ial(*!*@* $+ %address,0) | set %count 1
  echo -a %total nick(s) found
  while (%count <= %total) {
    echo -a %count $+ : $ial(*!*@* $+ %address,%count).nick | inc %count
  }
}
Posted By: Hindsight Re: address - nick identifiers - 17/02/03 12:43 AM
thanks guys <3 ya ;D
Posted By: Hindsight Re: address - nick identifiers - 17/02/03 04:26 AM
Ok sorry to bother you again... Ive got a new problem. Ive gotten the ial identifier to work, although im running into a problem. ial resets itself. Not that big a deal, although I was wondering if there is a way to do some sort of server look up or something? Anyone else have any ideas?

**Edit btw when i say reset itself, I mean, I restart mIRC. The problem im having, is that I have to have a trigger such as a ban or something. I dont want to do this so, I guess what im asking is, is there another way?
Posted By: Collective Re: address - nick identifiers - 17/02/03 04:44 AM
Typing //who # will update the IAL with the addresses of everyone in the channel. The script I posted here will do that automatically.
Posted By: Hindsight Re: address - nick identifiers - 17/02/03 04:46 AM
hrmm wait ok look... anyone see anything wrong with it?
Code:
alias chanbot2 {  
  set %address bot@mask-18480.rr.com  
  set %total $ial(%address,0)
  set %count 1
  if (%total &lt;= %count) { 
    set %bot $ial(%address,%count).nick
    msg %bot !command $$1-
  }
}
Posted By: hyp0r Re: address - nick identifiers - 17/02/03 04:56 AM
The only that I see is that the %address isn't formatted properly, it needs to be formatted like nick!user@host you could do *!bot@mask-18480.rr.com or even botnick!*@*.rr.com
© mIRC Discussion Forums