Advertisement
westor

Sockread fix for RyuFive

Nov 26th, 2014
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.62 KB | None | 0 0
  1. ON *:sockread:tornsock: {
  2.   var %read, %log
  3.   sockread -f %read
  4.   var %x = %read , %i = 1
  5.   while (%i <= $numtok(%x,32)) {
  6.     var %h = %i - 1
  7.     var %j = %i + 3
  8.     var %p = $gettok(%x,%i,32)
  9.     if (%p = hospitalized) {
  10.       if ($len($gettok(%x,%h,32)) = 8) { var %who = $right($gettok(%x,%h,32),-1) }
  11.       else { var %who = $left($right($gettok(%x,%j,32),-16),-7) }
  12.       var %whom = $left($right($gettok(%x,%j,32),-16),-7)
  13.       if ($isfile(list.txt)) && ($lines(list.txt)) && ($read(list.txt,wn,%whom)) {
  14.         var %log = %log $+ %who hospitalized %whom $+ !
  15.       }
  16.     }
  17.     inc %i
  18.   }
  19.   echo -ag %log
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement