menu channel {
:sysinfo1
Record Uptime {
if ( $calc($ticks / 1000) > %uptimer ) { set %uptimer $calc($ticks / 1000) }
else { goto sysinfo2 }
:sysinfo2
if (%sys.mode = a) { goto end }
else {
%sys.mode [ $+ $dll(moo.dll,osinfo,_) $+ ] $+ . Record Uptime:4: $+ $duration(%uptimer)
}
}
:end
}
this is the command(in blue)
and im assuming that the variables
value is echo
but i cant see
so maybe if you changed the value
to msg $chan
or msg #channel
it would work
or just replace the variable with the actual command
------------------------------------------------------------------------
menu channel {
:sysinfo1
Record Uptime {
if ( $calc($ticks / 1000) > %uptimer ) { set %uptimer $calc($ticks / 1000) }
else { goto sysinfo2 }
:sysinfo2
if (%sys.mode = a) { goto end }
else {
msg $chan [ $+ $dll(moo.dll,osinfo,_) $+ ] $+ . Record Uptime:4: $+ $duration(%uptimer)
}
}
:end
}
-------------------------------------------------------------------------
but if the script sets a varible for the command
i would have thought you would
be able to choose somehow between echo and msg?