mIRC Homepage
Posted By: bwuser make this work for specific nicks - 13/12/07 11:05 AM
hello

I have this alias that will msg all the regular users of my channel

Code:
alias mm { var %a $nvnick($chan,0) | while %a { .timer 1 $calc(%a * 9) .msg $nvnick($chan,%a) $1- | dec %a } }


how can I make it exclude (not msg) the people that are in my protect and ignore list?

thanks
Posted By: RoCk Re: make this work for specific nicks - 13/12/07 01:39 PM

Code:

alias mm {
  var %a = $nvnick($chan,0)
  while (%a) {
    if (($fulladdress !isignore) && ($fulladdress !isprotect)) {
      .timer 1 $calc(%a * 9) .msg $nvnick($chan,%a) $1-
    }
    dec %a
  }
}

Posted By: bwuser Re: make this work for specific nicks - 13/12/07 10:21 PM
it doesn't work well

it still msgs a person that has a nick that is already in my protect list

nick*!*@*
Posted By: bwuser Re: make this work for specific nicks - 15/12/07 09:54 PM
anyone?
Posted By: LonDart Re: make this work for specific nicks - 15/12/07 10:44 PM
Protect is based on nick only, not address, so try this edit of RoCK's script:
Code:
alias mm {
  var %a = $nvnick($chan,0)
  while (%a) {
    if (($fulladdress !isignore) && ($nick !isprotect)) {
      .timer 1 $calc(%a * 9) .msg $nvnick($chan,%a) $1-
    }
    dec %a
  }
}

If that doesn't work, I would next try it with:
Code:
if (($fulladdress !isignore) && ($nvnick !isprotect)) {

Posted By: RoCk Re: make this work for specific nicks - 15/12/07 11:43 PM

Originally Posted By: LonDart

Protect is based on nick only, not address...



Say what? I think you'd better look again.
Posted By: LonDart Re: make this work for specific nicks - 17/12/07 12:25 AM
Okay, I did not read carefully enough. I've never used this type of protection.
Apparently, I only read the first segment of this sentence in the help file under Address Book:
Quote:
Note: This option is usually limited to using nicknames because of the way IRC servers work,
however you can specify an address, and if the user is in your Internal Address List, they will be protected by address.
Posted By: bwuser Re: make this work for specific nicks - 17/12/07 07:17 AM
so how the script should be please ?
© mIRC Discussion Forums