Fillezilla Monitor Script

By on Jul 15, 2013

Where it says FILEPATH change it to your Filezilla log folder for example mine is C:\Program Files (x86)\FileZilla Server\Logs Make sure it is set to that. And Dont forget to add your channel name where it says #IRC Channel and add your irc address or IP address and it will work fine :)

;All you have to do is change the path in this script. Then, if u have to, type in 

alias filezillaserverlog {
  if (!$fopen(FTPlog)) {
    if ($isfile($shortfn($filezillaserver(l)))) { .fopen FTPlog $shortfn($filezillaserver(l)) | .fseek FTPlog $file($shortfn($filezillaserver(l))).size }
    else { .fopen -o FTPlog $shortfn($filezillaserver(l)) }
  if ($fread(FTPlog) != $null) { .signal FileZillaServerLog $ifmatch }
  while (!$fopen(FTPLog).eof) {
    var %l = $fread(FTPLog)
    if (%l != $null) { .signal FileZillaServerLog %l }

alias filezillaserver {
  if (!$isid) { return }
  if (!$1) {
    if (!%filezilla_server.path) { set -s %filezilla_server.path $shortfn(FILEPATH) }
    if ($right(%filezilla_server.path,1) != \) { set -s %filezilla_server.path %filezilla_server.path $+ \ }
    return %filezilla_server.path
  elseif ($1 = l) { return %filezilla_server.path $+ FileZilla Server.log }
on *:signal:FileZillaServerLog: {
  if ($($+(%,flood.,$me),2)) { return }
  set -u2 %flood. $+ $me On
  .msg %filezilla_server.chan 0,4 $+ $1-

on *:start:{
  set %filezilla_server.chan #IRC CHANNEL
  set -s %filezilla_server.path $shortfn(FILEPATH)
  ;This probably wont matter, but change the server. i forgot why i did this.
  set %filezilla_server.irc IRC address or IP

on *:connect:{
  if ($server == %filezilla_server.irc) {
    .timerfilezilla_serverlog -om 0 100 filezillaserverlog


Sign in to comment.
Savage_CL   -  Aug 09, 2013

A couple of things you could do:

because you have FILEPATH in multiple places, try this at the top, so you only need to set it once. Then call it with $FILEZILLA_FILEPATH.


your server and channel could be set this way (called a constant) as well, so you aren't using extraneous variables. As far as why you have a specific server set, it looks to be so it automatically starts only on the IRC server you want (incase you connect to multiple).

I also suggest commenting the hell out of your code. Every couple of lines or every scope change, so you know what you're doing there if you ever have to come back to it.

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.