Advertisement
Guest User

Untitled

a guest
Aug 29th, 2019
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.98 KB | None | 0 0
  1. /*
  2. * Anti Force Join - por rockcavera
  3. */
  4.  
  5. on $*:PARSELINE:out:/^JOIN (#[^\s]*)/:{
  6.   set -l %chans $regml(1)
  7.   set -l %hash antiforcejoin
  8.   if (!$hget(%hash)) hmake %hash
  9.   set -l %x $numtok(%chans,44)
  10.   while %x {
  11.     set -l %chan $gettok(%chans,%x,44)
  12.     if (part != $hget(%hash,%chan)) hadd -u300 %hash %chan join
  13.     dec %x
  14.   }
  15. }
  16.  
  17. on $*:PARSELINE:in:/^:(.+?)!.+? JOIN :?(#[^\s]*)/:{
  18.   echo -s FOI $regml(1) $regml(2)
  19.   if ($me != $regml(1)) return
  20.   set -l %chan $regml(2)
  21.   set -l %hash antiforcejoin
  22.   if (!$hget(%hash)) hmake %hash
  23.   if (join == $hget(%hash,%chan)) hdel %hash %chan
  24.   else {
  25.     hadd -u300 %hash %chan part
  26.     !.join -n %chan
  27.     !.part %chan
  28.   }
  29. }
  30.  
  31. on ^*:JOIN:*:{
  32.   if ($me != $nick) return
  33.   set -l %hash antiforcejoin
  34.   if (part == $hget(%hash,$chan)) !.window -w0 $chan
  35.   elseif (join == $v2) hdel %hash $chan
  36. }
  37.  
  38. on *:PART:*:{
  39.   if ($me != $nick) return
  40.   set -l %hash antiforcejoin
  41.   if (part == $hget(%hash,$chan)) hdel %hash $chan
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement