Code: Select all
bind pub n|n .ping pub:ping
proc pub:ping {nick host handle chan text} {
set ping_var [exec ping $text]
set l [split $ping_var "\t\n"]
foreach i $l { puthelp "PRIVMSG $chan :$i" }
}
Code: Select all
bind pub n|n .ping pub:ping
proc pub:ping {nick host handle channel text} {
putserv "PRIVMSG $channel :$text> Pinging..."
set ping_var [exec ping $text]
set l [split $ping_var \n]
for {set i 0} {$i < [llength $l]} {incr i} {
set line [lindex $l $i]
putserv "PRIVMSG $channel :$text_$i> $line"
}
putserv "PRIVMSG $channel :$text> Done."
}
Umm, that is clear. If you don't know TCL, learn it to better understand this. http://mc.purehype.net/faq/?view=56gIga wrote:Can explain clearer to me thanks
That is about a classical example of an enormous security hole.MC_8 wrote:[snip]Code: Select all
bind pub n|n .ping pub:ping proc pub:ping {nick host handle channel text} { putserv "PRIVMSG $channel :$text> Pinging..." set ping_var [exec ping $text] ... [snip] ... }