summaryrefslogtreecommitdiffstats
path: root/file.tcl
blob: cde8e037eb4ddb841c985569025a72a749badcfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
bind pub - !filetype proc_file

proc proc_file {nick host hand chan arg} {
   set arg [string trim $arg]
   if {$arg == ""} {
      return 0
   }

   set output [split "[exec perl /home/eggdrop/eggdrop/scripts/file.pl $arg /home/eggdrop/eggdrop/scripts/fileextensions.txt X]" "\n"]
   foreach out $output {
      putserv "PRIVMSG $chan :$out"
   }
}

putlog "filetype by lookshe loaded"