mIRC Home    About    Download    Register    News    Help

Print Thread
help exempt voice #196692 21/03/08 11:52 PM
Joined: Oct 2007
Posts: 102
B
bcancer Offline OP
Vogon poet
OP Offline
Vogon poet
B
Joined: Oct 2007
Posts: 102
This will exempt op...how do I exempt voice on the same line?

on @*:TEXT:*:#:{

Re: help exempt voice [Re: bcancer] #196695 22/03/08 12:54 AM
Joined: Dec 2002
Posts: 503
B
Bekar Offline
Fjord artisan
Offline
Fjord artisan
B
Joined: Dec 2002
Posts: 503
That won't excempt op's. That will only trigger if you are an op.

You want:

Code:
if ($nick isreg)

or

Code:
if (($nick !isop) && ($nick !isvoice))

perhaps.

Last edited by Bekar; 22/03/08 02:31 AM.
Re: help exempt voice [Re: Bekar] #196696 22/03/08 01:07 AM
Joined: Oct 2007
Posts: 102
B
bcancer Offline OP
Vogon poet
OP Offline
Vogon poet
B
Joined: Oct 2007
Posts: 102
I want to exempt op and voice from bad text or bad words.

Re: help exempt voice [Re: Bekar] #196697 22/03/08 02:21 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
While you're right that it won't exempt ops, you're wrong in that it will only trigger if you're not an op... in fact, it will only trigger if you are an op.

Re: help exempt voice [Re: bcancer] #196698 22/03/08 02:22 AM
Joined: Apr 2007
Posts: 228
M
Mpot Offline
Fjord artisan
Offline
Fjord artisan
M
Joined: Apr 2007
Posts: 228
if (($nick !isop) && ($nick !isvoice))

Other than that addition, your code is sound.

Re: help exempt voice [Re: bcancer] #196699 22/03/08 02:22 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Code:
on *:text:*:#:{
  if $nick isreg {
    ;rest of code to handle bad text/words
  }
}

Re: help exempt voice [Re: RusselB] #196700 22/03/08 02:29 AM
Joined: Apr 2007
Posts: 228
M
Mpot Offline
Fjord artisan
Offline
Fjord artisan
M
Joined: Apr 2007
Posts: 228
Do you need the rest of the code as well?

Re: help exempt voice [Re: RusselB] #196701 22/03/08 02:31 AM
Joined: Dec 2002
Posts: 503
B
Bekar Offline
Fjord artisan
Offline
Fjord artisan
B
Joined: Dec 2002
Posts: 503
Ack! I had 'not' (!) on the brain!

Typo's fixed.

Re: help exempt voice [Re: Mpot] #196703 22/03/08 02:43 AM
Joined: Oct 2007
Posts: 102
B
bcancer Offline OP
Vogon poet
OP Offline
Vogon poet
B
Joined: Oct 2007
Posts: 102
yes I need the rest please because its not working

Re: help exempt voice [Re: bcancer] #196705 22/03/08 03:04 AM
Joined: Apr 2007
Posts: 228
M
Mpot Offline
Fjord artisan
Offline
Fjord artisan
M
Joined: Apr 2007
Posts: 228
on *:text:*:#:{
if $nick isreg {
}
}

Normally I'd do this myself but I think it might perhaps need tokens or iswm instead of isin, so someone more capable might be better.

Re: help exempt voice [Re: Mpot] #196707 22/03/08 03:06 AM
Joined: Oct 2007
Posts: 102
B
bcancer Offline OP
Vogon poet
OP Offline
Vogon poet
B
Joined: Oct 2007
Posts: 102
thx guys.

Re: help exempt voice [Re: bcancer] #196732 22/03/08 01:30 PM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Your statement of
Quote:
I want to exempt op and voice from bad text or bad words.
implies that you already have code to handle the bad text or bad words. The code I gave you simply has a single remarked line to indicate where that code would go.
If you don't have a code to handle bad text/words, then I suggest looking on some of the other scripting sites for one, as they have been done a fair bit.

Some scripting sites you might want to try are Hawkee, mIRC Scripts