mIRC Homepage
Posted By: Daedalus address - 09/06/04 04:08 PM
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) { 
Posted By: LifeIsPain Re: address - 09/06/04 04:25 PM
$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)
Posted By: landonsandor Re: address - 09/06/04 10:25 PM
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
Posted By: neznani Re: address - 11/06/04 05:08 PM
$address($me,2)
© mIRC Discussion Forums