mIRC Home    About    Download    Register    News    Help

Print Thread
address #86133 09/06/04 04:08 PM
Joined: Mar 2004
Posts: 45
D
Daedalus Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Mar 2004
Posts: 45
This propably a dumb question, but what identifier should I use to get my own address? I have this script:
Code:
 on ^*:NOTIFY: {
  if ($nick == %nick.1) {
    nickserv ghost %nick.1 %pass.1
    .notice $nick You are not allowed to use the nickname %nick.1 , I have registred it.
    echo -s $ts  ( $+ $address $+ ) tried to use your nickname ( $+ %nick.1 $+ )
  } 


I want it like this:
Code:
 if ($nick == %nick.1) && ($address =! MYADDRESS) { 

Re: address #86134 09/06/04 04:25 PM
Joined: Apr 2003
Posts: 36
L
LifeIsPain Offline
Ameglian cow
Offline
Ameglian cow
L
Joined: Apr 2003
Posts: 36
$host and $ip, would be best to check both:
Code:
if ($nick == %nick.1 && $address =! $host && $address != $ip) {

Also note, if you are an IRC op or someone who is able to have a hostmask, there isn't an identifyer for this (at least, I sure don't know of one)

Re: address #86135 09/06/04 10:25 PM
Joined: Dec 2002
Posts: 1,530
L
landonsandor Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,530
What I use is this:

Code:
    if ($nick != $me) {
      if ($nick == %nick1) { kill $nick }
      if (($nick == %nick2) || ($nick == %nick3)) { kill2 $nick }
    }


I don't mess with addresses cause if said nickname isnt me, it's somebody else. Also, you'll notice 2 different commands there ....... this way it does something for my naim nickname but somethig else for my backups. I've been using this for a few years now and it has worked brilliantly smile


Those who fail history are doomed to repeat it
Re: address #86136 11/06/04 05:08 PM
Joined: Sep 2003
Posts: 98
N
neznani Offline
Babel fish
Offline
Babel fish
N
Joined: Sep 2003
Posts: 98
$address($me,2)


www.stwar.us.to
IRCnet - #stwar