rendered paste body;on :start: { timernames -o 0 300 update }
;alias update {
; var %i1 = 1, %total1 = $scon(0)
; while (%i1 <= %total1) {
; if ($scon(%i1).status == connected) { scid $scon(%i1).cid | var %i2 = 1 | while ($comchan($me,%i2)) { names $v1 | set -u5 %nonames. [ $+ [ $v1 ] ] $true | inc %i2 }
; }
; inc %i1
; }
;---- On Join timer will check all active connections
on *:JOIN:*: { if ($nick == $me) { timernames -io 0 300 scid -at1 update } }
;---$comchan loop ----
alias update {
var %i2 1
while (%i2 <= $chan(0)) { set -u5 %nonames. [ $+ [ $chan(%i2) ] ] $true | names $chan(%i2) | inc %i2 }
}
;---Raw Codes----
raw 353:*:{ if (%nonames. [ $+ [ $3 ] ]) { haltdef } }
raw 366:*:{ if (%nonames. [ $+ [ $2 ] ]) { haltdef } }
;--- Your new manual /names command
;----/nms #channel
alias nms { unset %nonames. [ $+ [ $1 ] ] | names $1 }