mIRC Home    About    Download    Register    News    Help

Print Thread
Page 2 of 2 1 2
SladeKraven #181292 21/07/07 01:48 AM
Joined: Aug 2006
Posts: 469
G
Garou Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Aug 2006
Posts: 469
Thx guys...I finally got it to work this way with no more error:

Code:

On me:*:Disconnect: exempt save
On *:Exit: exempt save
on *:start:{
  if (!$isdir($mircdirsys)) mkdir $qt($mircdirsys)
  if !$hget(exempt)  { .hmake exempt 10 }
  if $exists($mircdirsys\exempt.hsh) { .hload -i exempt $mircdirsys\exempt.hsh }
}

 

Garou #181293 21/07/07 02:10 AM
Joined: Aug 2006
Posts: 469
G
Garou Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Aug 2006
Posts: 469
Is it possible to apply this same exempt code for this rev door script to also exempt op?
If yes how?

Code:
 

on @*:join:#:{
  if ( %door == off ) || ( %door == $null ) || ($nick isop $chan) { return }
  if (% [ $+ [ $wildsite ] $+ ] .rd == $null) { set -u30 % [ $+ [ $wildsite ] $+ ] .rd on }
}
on @*:PART:#:{
  if ( %door == off ) || ( %door == $null ) || ($nick isop $chan) { return }
  if (% [ $+ [ $wildsite ] $+ ] .rd != $null) { ban -u600 # $mask($fulladdress,2) }
}



Garou #181295 21/07/07 04:47 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
You'll need to put a small delay into your ON JOIN event, as any nick that joins is a regular user (no ops, no half-ops, no voice, etc.) at the time of joining.

Personally, I would leave your events as is, but add the following
Code:
on *:op:#:{
  if $($+(%,$wildsite,.rd),2) {
    unset $+(%,$wildsite,.rd)
  }
}
on *:serverop:#:{
  if $($+(%,$wildsite,.rd),2) {
    unset $+(%,$wildsite,.rd)
  }
}


That will unset the variable when the person is opped, if it hasn't already been unset via the -u switch.

One little note, and this is just my preference, for the BAN command in the ON PART event, I like to use
Code:
ban -u600 $nick 2
The usage of the 2 parameter in the $mask identifier, realistically nullifies the usage of $fulladdress, since you end up with the wildcarded address for the ban.

The reason I like doing it the way I showed, is that the $bnick identifier is filled when using that method, however, using your method, it is not.

RusselB #181301 21/07/07 06:30 AM
Joined: Aug 2006
Posts: 469
G
Garou Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Aug 2006
Posts: 469
Ok cool Ill try it thx.

Garou #181311 21/07/07 01:07 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
on @*:join:#:{
  if (%door == off) || (!%door) || ($isexempt($nick)) { return }
  if (% [ $+ [ $wildsite ] $+ ] .rd == $null) { set -u30 % [ $+ [ $wildsite ] $+ ] .rd on }
}
on @*:PART:#:{
  if (%door == off) || (!%door) { return }
  if (% [ $+ [ $wildsite ] $+ ] .rd != $null) { ban -u600 # $mask($fulladdress,2) }
}


Use my $isexempt alias to check if they're in the list or not.

I didn't add it for the On Part event because if the var isnt set for them when they join it's not going to be there if/when they part.

SladeKraven #181334 21/07/07 05:37 PM
Joined: Aug 2006
Posts: 469
G
Garou Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Aug 2006
Posts: 469
SladeKraven cool stuff thx mate.

Garou #181335 21/07/07 05:58 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Glad it works for ya, have fun! smile

Page 2 of 2 1 2

Link Copied to Clipboard