bind pubm - * pubm proc pubm {nick host handle chan text} { if { [string match *http://* $text] } { if {[catch {exec /usr/local/share/eggdrop/scripts/parse.php $text } output]} { putserv "privmsg $chan :Invalid URL or script problem" #report an error } else { if {[string length $output] > 0} { putserv "privmsg $chan :$nick's shortened url is : $output" } } } if { [string match status $text] } { if {[catch {exec /usr/local/share/eggdrop/scripts/status.php } output]} { #putserv "privmsg $chan :statuserror $output" } else { putserv "privmsg $chan :I'm currently caching $output URLs" } } } # [EOF]