Advertisement
westor

Add/Dell/Viewlist commands for Sleeping_On_The_Job v1.1

May 16th, 2020
2,143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.70 KB | None | 0 0
  1. alias -l txt { return C:\Users\hifin\Desktop\mibbitnames\badnick.txt }
  2. alias -l mychan { return #testings }
  3.  
  4. ON *:TEXT:!add *:$($mychan): {
  5.   write $qt($txt) $2
  6.   msg $chan 4ADD Watched nick - $2
  7. }
  8.  
  9. ON *:TEXT:!del *:$($mychan): {
  10.   write -d $qt($txt) $2
  11.   msg $chan 3DELETED Watched nick - $2
  12. }
  13.  
  14. ON *:TEXT:!viewlist:$($mychan): {
  15.   var %t = $lines($txt)
  16.  
  17.   if (!$file($txt)) { msg $chan The file is empty! | return }
  18.  
  19.   msg $chan 6LIST Incoming PM
  20.   msg $nick Start of file.. - (Lines: %t $+ )
  21.  
  22.   var %i = 1
  23.   while (%i <= %t) {
  24.     var %r = $read($txt,n,%i)
  25.  
  26.     if (%r) { msg $nick %r }
  27.  
  28.     inc %i
  29.   }
  30.  
  31.   msg $nick End of file. - (Size: $bytes($file($txt).size).suf $+ )
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement