mIRC Home    About    Download    Register    News    Help

Print Thread
#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:*:#:{

Joined: Dec 2002
Posts: 503
B
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.
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.

Bekar #196697 22/03/08 02:21 AM
Joined: Aug 2004
Posts: 7,252
R
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.

Joined: Apr 2007
Posts: 228
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Apr 2007
Posts: 228
if (($nick !isop) && ($nick !isvoice))

Other than that addition, your code is sound.

Joined: Aug 2004
Posts: 7,252
R
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
  }
}

Joined: Apr 2007
Posts: 228
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Apr 2007
Posts: 228
Do you need the rest of the code as well?

Joined: Dec 2002
Posts: 503
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Dec 2002
Posts: 503
Ack! I had 'not' (!) on the brain!

Typo's fixed.

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

Joined: Apr 2007
Posts: 228
M
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.

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.

Joined: Aug 2004
Posts: 7,252
R
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


Link Copied to Clipboard