Advertisement
wollux

Uni-Script v3 P2P

Feb 5th, 2012
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 2.41 KB | None | 0 0
  1. menu channel,query {
  2.   -[-(Uni-Script)-]-
  3.  .//P2P System\\
  4.   ../-[Blocker]-\ ( $+ $iif($group(#UniP2P.Block) = on,$chr(164),x) $+ )
  5.   ... $iif($group(#UniP2P.Block) = On,$style(1)) $+ /-|On|-\:.enable #UniP2P.Block | echo -agt 0-15(14P2P System15)0- 0-4(14P2P Blocker Currently On.4)0-
  6.   ... $iif($group(#UniP2P.Block) = off,$style(1)) $+ /-|Off|-\: {
  7.     .disable #UniP2P.Block
  8.     echo -agt 0-15(14P2P System15)0- 0-4(14P2P Blocker Currently Off.4)0-
  9.     if ($group(#UniP2P.Kill) = on) { .disable #UniP2P.Kill }
  10.   }
  11.   ..-
  12.   ../-[Killer]-\ ( $+ $iif($group(#UniP2P.Kill) = on,$chr(164),x) $+ )
  13.   ... $iif($group(#UniP2P.Kill) = on,$style(1)) $+ /-|On|-\: {
  14.     if ($group(#UniP2P.Block) != on) { echo -ag 0-15(14P2P System15)0- 0-4(14The P2P Blocker Must Be On4)0- }
  15.     else { .enable #UniP2P.Kill | msg #active 0-15(14P2P System15)0- 0-4(14P2P Kill Currently Enabled.4)0- }
  16.   }
  17.   ... $iif($group(#UniP2P.Kill) = off,$style(1)) $+ /-|Off|-\:.disable #UniP2P.Kill | msg $active 0-15(14P2P System15)0- 0-4(14P2P Kill Currently Disabled.4)0-
  18.   ..-
  19.   ...Block for $server $iif(%p2p.block. [ $+ [ $server ] ] == on,$chr(164),x)
  20.   ... $iif(%p2p.block. [ $+ [ $server ] ] == on,$style(1) On,On):/set %p2p.block. [ $+ [ $server ] ] On | amsg 0-15(14P2P System15)0- 0-4(14P2P Blocker Currently Enabed for $server $+ .4)0-
  21.   ... $iif(%p2p.block. [ $+ [ $server ] ] == off,$style(1) Off,Off):/set %p2p.block. [ $+ [ $server ] ] Off | amsg 0-15(14P2P System15)0- 0-4(14P2P Blocker Currently Disabled for $server $+ .4)0-
  22. #UniP2P.Block off
  23. on ^*:OPEN:?: {
  24.   if (!$window(@Uni-P2P)) { window -E @Uni-P2P }
  25.   if (%p2p.block. [ $+ [ $server ] ] == on) {
  26.     inc %P2P.Block
  27.     notice $nick $Text.1(P2P System) 0-15(14P2P's are currently being 4Blocked14. Please Try again later,15)0-
  28.     inc %Uni.p2p.all
  29.     inc %uni.p2p.now
  30.     rline @Uni-P2P 1 You have had %uni.p2p.all Total P2P's blocked and %uni.p2p.now Current P2P's blocked.
  31.     aline @Uni-P2P P2P Blocked on $server $iif($network,$+([,$network,])) ( $+ $nick / $address $+ ) $time(hh:nn:ss tt mm/dd/yyyy) Number: %uni.p2p.now
  32.     if ($query($nick)) { .close -m $nick }
  33.     if ($group(#UniP2P.Kill) = on) { P2PKill $nick }
  34.     halt
  35.   }
  36. }
  37. #UniP2P.Block end
  38.  
  39. #UniP2P.Kill off
  40. alias -l P2PKill { .raw kill $1 0-15(14P2P System15)0- 0-4(14P2P Kill 4Enabled14. Baii.4)0- }
  41. #UniP2P.Kill end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement