Advertisement
SaNCaK

mIRC Pastedelay

Jan 28th, 2014
505
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.45 KB | None | 0 0
  1. on *:INPUT:#:{
  2.   if ($left($1,1) != /) {
  3.     haltdef
  4.     var %lines = $1-
  5.     if (%lines == $null) { %lines  }
  6.     if (!$window(@Pastedelay)) { window -lh @Pastedelay }
  7.     if (($target ischan) && (c isincs $gettok($chan($active).mode,1,32))) {
  8.       %lines = $strip(%lines,c)
  9.     }
  10.     if ($window(@Pastedelay)) { aline @Pastedelay %lines }
  11.     .timerpastedelay 1 0 start.pastedelay
  12.     halt
  13.     if ($me isop #) { .msg # $1- | echo -tm $chan 02(@01 $+ $me $+ 02)01 $1- | haltdef }
  14.     if ($me ishop #) { .msg # $1- | echo -tm $chan 02(%01 $+ $me $+ 02)01 $1- | haltdef }
  15.     if ($me isvoice #) { .msg # $1- | echo -tm $chan 02(+01 $+ $me $+ 02)01 $1- | haltdef }
  16.     if ($me isreg #) { .msg # $1- | echo -tm $chan 02(01 $+ $me $+ 02)01 $1- | haltdef }
  17.     if ($inpaste) && ($istok(channel query chat,$window($active).type,32)) {
  18.     }
  19.   }
  20. }
  21.  
  22. alias -l start.pastedelay {
  23.   var %PDWindow = @Pastedelay, %pastedelay
  24.   if (($line(%PDWindow,0) > 3) && (!$$input(Paste $line(%PDWindow,0) lines to $active $+ ? $crlf $pdpreview,iyw,Confirm Paste Delay))) {
  25.     var %play = $$input(Play $line(%PDWindow,0) lines to $active $+ ? $crlf $pdpreview,iyw,Confirm Playback text))
  26.     $iif((%play),!.play -b $active 3000)
  27.     window -c @Pastedelay
  28.     return
  29.   }
  30.   pastedelay $active 1 %pastedelay
  31. }
  32.  
  33. alias -l pdpreview {
  34.   return $crlf $line(@Pastedelay,1) $crlf $line(@Pastedelay,2) $crlf $line(@Pastedelay,3) $crlf $line(@Pastedelay,4)
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement