mIRC Home    About    Download    Register    News    Help

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

Re: address - nick identifiers #11636
16/02/03 11:25 PM
16/02/03 11:25 PM
Joined: Feb 2003
Posts: 15
California, USA
H
hyp0r Offline
Pikka bird
hyp0r  Offline
Pikka bird
H

Joined: Feb 2003
Posts: 15
California, USA
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.

Re: address - nick identifiers #11637
16/02/03 11:53 PM
16/02/03 11:53 PM
Joined: Dec 2002
Posts: 2,962
Norwich, UK
S
starbucks_mafia Offline
Hoopy frood
starbucks_mafia  Offline
Hoopy frood
S

Joined: Dec 2002
Posts: 2,962
Norwich, UK
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.
Re: address - nick identifiers #11638
17/02/03 12:11 AM
17/02/03 12:11 AM
Joined: Feb 2003
Posts: 15
California, USA
H
hyp0r Offline
Pikka bird
hyp0r  Offline
Pikka bird
H

Joined: Feb 2003
Posts: 15
California, USA
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
  }
}

Re: address - nick identifiers #11639
17/02/03 12:43 AM
17/02/03 12:43 AM
Joined: Jan 2003
Posts: 108
H
Hindsight Offline OP
Vogon poet
Hindsight  Offline OP
Vogon poet
H

Joined: Jan 2003
Posts: 108
thanks guys <3 ya ;D

Re: address - nick identifiers #11640
17/02/03 04:26 AM
17/02/03 04:26 AM
Joined: Jan 2003
Posts: 108
H
Hindsight Offline OP
Vogon poet
Hindsight  Offline OP
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?

Re: address - nick identifiers #11641
17/02/03 04:44 AM
17/02/03 04:44 AM
Joined: Dec 2002
Posts: 3,138
London, UK
C
Collective Offline
Hoopy frood
Collective  Offline
Hoopy frood
C

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

Re: address - nick identifiers #11642
17/02/03 04:46 AM
17/02/03 04:46 AM
Joined: Jan 2003
Posts: 108
H
Hindsight Offline OP
Vogon poet
Hindsight  Offline OP
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.
Re: address - nick identifiers #11643
17/02/03 04:56 AM
17/02/03 04:56 AM
Joined: Feb 2003
Posts: 15
California, USA
H
hyp0r Offline
Pikka bird
hyp0r  Offline
Pikka bird
H

Joined: Feb 2003
Posts: 15
California, USA
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