All pastes #12240 Raw Edit

Untitled

public text v1 · immutable
#12240 ·published 2005-05-20 12:12 UTC
rendered paste body
sf2 {
  %i = 1
  while (%i <= $window(*,0)) {
    if ($window(*,%i) == $active) {
      %o = $calc(%i - 1)
      if (%o == 0) { %o = $window(*,0) }
      while ($window(*,%o) == @LAGbar || $window(*,%o) == @Membar) { if (%o == 1) { %o = $window(*,0) } | else { dec %o } }
      window -a $sf.check.chat(" $+ $window(*,%o) $+ ")
      halt      
    }
    inc %i
  }
}
sf.check.chat {
  if ($left($remove($1-,"),1) == =) { return $remove($1-,") }
  else { return $1- }
}