mIRC Home    About    Download    Register    News    Help

Print Thread
make this work for specific nicks #191649 13/12/07 11:05 AM
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

Re: make this work for specific nicks [Re: bwuser] #191652 13/12/07 01:39 PM
Joined: Dec 2002
Posts: 2,021
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,021

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


Re: make this work for specific nicks [Re: RoCk] #191679 13/12/07 10:21 PM
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*!*@*

Re: make this work for specific nicks [Re: bwuser] #191782 15/12/07 09:54 PM
Joined: Jul 2006
Posts: 248
B
bwuser Offline OP
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Jul 2006
Posts: 248
anyone?

Re: make this work for specific nicks [Re: bwuser] #191791 15/12/07 10:44 PM
Joined: Jul 2006
Posts: 107
L
LonDart Offline
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
Re: make this work for specific nicks [Re: LonDart] #191796 15/12/07 11:43 PM
Joined: Dec 2002
Posts: 2,021
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,021

Originally Posted By: LonDart

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



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

Re: make this work for specific nicks [Re: RoCk] #191851 17/12/07 12:25 AM
Joined: Jul 2006
Posts: 107
L
LonDart Offline
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
Re: make this work for specific nicks [Re: LonDart] #191870 17/12/07 07:17 AM
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 ?