Code: Select all
bind PUB - !uptime uptime:pub
proc uptime:pub {nick uhost hand chan arg} {
global botnick
foreach line [split [exec uptime.exe] \n] {
putquick "NOTICE $nick :$botnick [join [lrange [split $line " "] 1 end]]"
}
}
Code: Select all
unix uptime - catch {exec uptime} boxuptime
windows uptime - [duration [expr [clock clicks] / 1000]]
yes there is i do it all the time :pThat is exactly the error I talked of in my message. There is currently no way around it.