Advertisement
mkv

correct way to timer in perl as far as I understand

mkv
May 9th, 2012
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.61 KB | None | 0 0
  1. @unbanq = ();
  2. $unbanqn = 0;
  3.  
  4. for ($n = 0; $n < $unbanqn; $n += 3)
  5. {
  6.     if (time() > $unbanq[$n])
  7.     {
  8.         $uchan = $unbanq[$n + 1];
  9.         $unick = $unbanq[$n + 2];
  10.         splice(@unbanq, $n, 3);
  11.         $unbanqn = @unbanq;
  12.         print "-- unbanning $unick";
  13.         $server->command("mode $uchan -b $unick!*@*");
  14.     }
  15. }
  16.  
  17. if ($text eq ".r 1950")
  18. {
  19.     print "-- kickbanning $nick -- .r 1950";
  20.     $server->command("mode $target +b $nick!*@*");
  21.     $server->command("kick $target $nick YOU'RE ALWAYS \x02SUPER SPECIAL, \x02THAT'S WHY YOU ARE \x034BANNED\x0F FROM HERE ?(?益??");
  22.     push(@unbanq, (time()+60, $target, $nick));
  23.     $unbanqn = @unbanq;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement