When you initially press f8 it won't deop or part--it should wait one minute before doing so. If you press f8 within that one minute time, it will "stop" the deop/part progress.
Is this not what happens? I see nothing visible as to why it wouldn't do this.
EditMikeChat, I see now. You're absolutely right, it's setting it then removing it. Try this:
alias f8 {
if ($timer(deop_and_part)) {
/set -u0 %f8_do_not_use_timer 1
.timerdeop_and_part off
}
scon -a windows
}
alias windows {
if (!%f8_do_not_use_timer) .timerdeop_and_part 1 60 /deop_and_part
var %z = 1
while ($chan(%z)) {
window $iif($window($v1).state == hidden,-w,-h) [ $v1 ]
inc %z
}
window $iif($window(Status Window).state == hidden,-w,-h) "Status Window"
}
alias -l deop_and_part {
if ($me isop #dynasty_help) { mode #dynasty_help -o $me }
if ($me isop #helpcom) { mode #helpcom -o $me }
if ($me isop #dyn_staff) { mode #dyn_staff -o $me }
if ($me isop #dyn_scripting) { mode #dyn_scripting -o $me }
if ($me isop #xbc_opers) { mode #xbc_opers -o $me }
if ($me ison #ascii_art) { part #ascii_art }
if ($me ison #xbc_help) { part #xbc_help }
if ($me ison #xbc_game) { part #xbc_game }
}