mIRC Home    About    Download    Register    News    Help

Print Thread
B
bwuser
bwuser
B
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

Joined: Dec 2002
Posts: 1,995
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 1,995

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
  }
}


B
bwuser
bwuser
B
it doesn't work well

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

nick*!*@*

B
bwuser
bwuser
B
anyone?

Joined: Jul 2006
Posts: 107
L
Vogon poet
Offline
Vogon poet
L
Joined: Jul 2006
Posts: 107
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)) {


Joined: Dec 2002
Posts: 1,995
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 1,995

Originally Posted By: LonDart

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



Say what? I think you'd better look again.

Joined: Jul 2006
Posts: 107
L
Vogon poet
Offline
Vogon poet
L
Joined: Jul 2006
Posts: 107
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.

B
bwuser
bwuser
B
so how the script should be please ?


Link Copied to Clipboard