mIRC Home    About    Download    Register    News    Help

Topic Options
#196692 - 21/03/08 11:52 PM help exempt voice
bcancer Offline
Vogon poet

Registered: 05/10/07
Posts: 102
This will exempt op...how do I exempt voice on the same line?

on @*:TEXT:*:#:{

Top
#196695 - 22/03/08 12:54 AM Re: help exempt voice [Re: bcancer]
Bekar Offline
Fjord artisan

Registered: 11/12/02
Posts: 503
Loc: Melbourne, Australia
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.


Edited by Bekar (22/03/08 02:31 AM)

Top
#196696 - 22/03/08 01:07 AM Re: help exempt voice [Re: Bekar]
bcancer Offline
Vogon poet

Registered: 05/10/07
Posts: 102
I want to exempt op and voice from bad text or bad words.

Top
#196697 - 22/03/08 02:21 AM Re: help exempt voice [Re: Bekar]
RusselB Offline
Planetary brain

Registered: 03/08/04
Posts: 7252
Loc: Ontario, Canada
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.

Top
#196698 - 22/03/08 02:22 AM Re: help exempt voice [Re: bcancer]
Mpot Offline
Fjord artisan

Registered: 24/04/07
Posts: 228
if (($nick !isop) && ($nick !isvoice))

Other than that addition, your code is sound.

Top
#196699 - 22/03/08 02:22 AM Re: help exempt voice [Re: bcancer]
RusselB Offline
Planetary brain

Registered: 03/08/04
Posts: 7252
Loc: Ontario, Canada
Code:
on *:text:*:#:{
  if $nick isreg {
    ;rest of code to handle bad text/words
  }
}

Top
#196700 - 22/03/08 02:29 AM Re: help exempt voice [Re: RusselB]
Mpot Offline
Fjord artisan

Registered: 24/04/07
Posts: 228
Do you need the rest of the code as well?

Top
#196701 - 22/03/08 02:31 AM Re: help exempt voice [Re: RusselB]
Bekar Offline
Fjord artisan

Registered: 11/12/02
Posts: 503
Loc: Melbourne, Australia
Ack! I had 'not' (!) on the brain!

Typo's fixed.

Top
#196703 - 22/03/08 02:43 AM Re: help exempt voice [Re: Mpot]
bcancer Offline
Vogon poet

Registered: 05/10/07
Posts: 102
yes I need the rest please because its not working

Top
#196705 - 22/03/08 03:04 AM Re: help exempt voice [Re: bcancer]
Mpot Offline
Fjord artisan

Registered: 24/04/07
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.

Top
#196707 - 22/03/08 03:06 AM Re: help exempt voice [Re: Mpot]
bcancer Offline
Vogon poet

Registered: 05/10/07
Posts: 102
thx guys.

Top
#196732 - 22/03/08 01:30 PM Re: help exempt voice [Re: bcancer]
RusselB Offline
Planetary brain

Registered: 03/08/04
Posts: 7252
Loc: Ontario, Canada
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

Top