summaryrefslogtreecommitdiffstats
path: root/tld.tcl
blob: 279c7e1af61414e699f814c41162e1fd6711940e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
bind pub - !tld proc_tld

proc proc_tld {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"