mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jul 2006
Posts: 248
B
bwuser Offline OP
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Jul 2006
Posts: 248
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: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

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


Joined: Jul 2006
Posts: 248
B
bwuser Offline OP
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Jul 2006
Posts: 248
it doesn't work well

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

nick*!*@*

Joined: Jul 2006
Posts: 248
B
bwuser Offline OP
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Jul 2006
Posts: 248
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)) {



LonDart
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

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.


LonDart
Joined: Jul 2006
Posts: 248
B
bwuser Offline OP
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Jul 2006
Posts: 248
so how the script should be please ?


Link Copied to Clipboard