mIRC Home    About    Download    Register    News    Help

Print Thread
#86133 09/06/04 04:08 PM
Joined: Mar 2004
Posts: 45
D
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) { 

#86134 09/06/04 04:25 PM
Joined: Apr 2003
Posts: 36
L
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)

#86135 09/06/04 10:25 PM
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
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
#86136 11/06/04 05:08 PM
Joined: Sep 2003
Posts: 98
N
Babel fish
Offline
Babel fish
N
Joined: Sep 2003
Posts: 98
$address($me,2)


www.stwar.us.to
IRCnet - #stwar

Link Copied to Clipboard