mIRC Homepage

help exempt voice

Posted By: bcancer

help exempt voice - 21/03/08 11:52 PM

This will exempt op...how do I exempt voice on the same line?

on @*:TEXT:*:#:{
Posted By: Bekar

Re: help exempt voice - 22/03/08 12:54 AM

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.
Posted By: bcancer

Re: help exempt voice - 22/03/08 01:07 AM

I want to exempt op and voice from bad text or bad words.
Posted By: RusselB

Re: help exempt voice - 22/03/08 02:21 AM

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.
Posted By: Mpot

Re: help exempt voice - 22/03/08 02:22 AM

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

Other than that addition, your code is sound.
Posted By: RusselB

Re: help exempt voice - 22/03/08 02:22 AM

Code:
on *:text:*:#:{
  if $nick isreg {
    ;rest of code to handle bad text/words
  }
}
Posted By: Mpot

Re: help exempt voice - 22/03/08 02:29 AM

Do you need the rest of the code as well?
Posted By: Bekar

Re: help exempt voice - 22/03/08 02:31 AM

Ack! I had 'not' (!) on the brain!

Typo's fixed.
Posted By: bcancer

Re: help exempt voice - 22/03/08 02:43 AM

yes I need the rest please because its not working
Posted By: Mpot

Re: help exempt voice - 22/03/08 03:04 AM

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.
Posted By: bcancer

Re: help exempt voice - 22/03/08 03:06 AM

thx guys.
Posted By: RusselB

Re: help exempt voice - 22/03/08 01:30 PM

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
© 2022 mIRC Discussion Forums