summaryrefslogtreecommitdiffstats
path: root/tld.tcl
blob: bbd69bd75bacebd1469a02fe43d12b7df41ee144 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
bind pub - !tld 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/tld.pl $arg]" "\n"]
   foreach out $output {
      putserv "PRIVMSG $chan :$out"
   }
}

putlog "tld by lookshe loaded"