Conscious commented on a Page, Log Viewer  -  Mar 02, 2011

I made a search feature to go along with this.

menu status,channel { 
  Log Viewer:/log.viewer
}
alias log.viewer {
  $iif(!$window(@LogViewer),window -CkSl18a @LogViewer $mircexe,window -a @LogViewer)
  dline -l @LogViewer 1-
  dline @LogViewer 1-
  renwin @LogViewer @LogViewer $chr(9)
  noop $qt($findfile($logdir,$+(*,$iif($1-,$v1),*,.log),@LogViewer,aline -l @LogViewer $nopath($1-))) 
} 
alias logs log.viewer $1-
menu @LogViewer {
  dclick {
    if ($sline(@LogViewer,1)) { 
      renwin @LogViewer @LogViewer $& 
        - Channel: $gettok($sline(@LogViewer,1),1,46) $&
        - Network: $gettok($sline(@LogViewer,1),2,46)
      .loadbuf -rip @LogViewer $qt($findfile($logdir,* $+ $sline(@LogViewer,1) $+ *,1)) 0
    }
  }
  Stats { echo -a 12[!]4 There are currently 12 $+ $findfile($logdir,*.log,0) 4log files 12[!] }
  Search { var %a = $$?="Search term" | $iif($remove(%a,$chr(32)) != $null,Log.Viewer %a,echo -a You cant search nothing!)
  renwin @LogViewer @LogViewer $chr(9) }
  Reload List { dline -l @LogViewer 1- | Log.Viewer }
  Clear List { 
    dline @LogViewer 1- 
    dline -l @LogViewer 1-
    renwin @LogViewer @LogViewer $chr(9)
    Log.Viewer
  }
}

Very nice code.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.