mIRC Home    About    Download    Register    News    Help

Print Thread
#11635 16/02/03 11:03 PM
Joined: Jan 2003
Posts: 108
H
Vogon poet
OP Offline
Vogon poet
H
Joined: Jan 2003
Posts: 108
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

Joined: Feb 2003
Posts: 15
H
Pikka bird
Offline
Pikka bird
H
Joined: Feb 2003
Posts: 15
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.

Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
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.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Joined: Feb 2003
Posts: 15
H
Pikka bird
Offline
Pikka bird
H
Joined: Feb 2003
Posts: 15
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
  }
}

Joined: Jan 2003
Posts: 108
H
Vogon poet
OP Offline
Vogon poet
H
Joined: Jan 2003
Posts: 108
thanks guys <3 ya ;D

Joined: Jan 2003
Posts: 108
H
Vogon poet
OP Offline
Vogon poet
H
Joined: Jan 2003
Posts: 108
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?

Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Typing //who # will update the IAL with the addresses of everyone in the channel. The script I posted here will do that automatically.

Joined: Jan 2003
Posts: 108
H
Vogon poet
OP Offline
Vogon poet
H
Joined: Jan 2003
Posts: 108
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-
  }
}

Last edited by Hindsight; 17/02/03 04:49 AM.
Joined: Feb 2003
Posts: 15
H
Pikka bird
Offline
Pikka bird
H
Joined: Feb 2003
Posts: 15
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


Link Copied to Clipboard