if {[mon_nick_is $mm(nopresence) $nl]} continue
lappend l $nl
}
+ ldebug m$m "$ch names: $l"
set mm(present-$ch) $l
mon_updateall $m
}
}
proc allchans_shortly {} {
- global chan_after onchans shortly_alling
- if {[info exists shortly_alling]} {
- ldebug {} "global check already pending"
- return
- }
- foreach ch [array names onchans] {
- manyset $onchans($ch) status after
- if {"$status" != "shortly"} continue
- set idle
- }
- set shortly_alling [after $chan_after allchans_sendnames]
-}
-
-proc allchans_sendnames {} {
- global shortly_alling
- unset shortly_alling
- ldebug {} "asking for global namelist"
- sendout NAMES
+ global onchans
+ foreach ch [array names onchans] { chan_shortly $ch }
}
proc chan_shortly {ch} {
- global chan_after shortly_alling
+ global chan_after
set ch [irctolower $ch]
- if {[info exists shortly_alling]} {
- ldebug c$ch "global check already pending"
- return
- }
upvar #0 onchans($ch) oc
if {[info exists oc]} {
manyset $oc status after
set lchan [irctolower $chan]
set nll [irctolower $nicklist]
regsub -all {[=@*]} $nll {} nll
- ldebug c$lchan "got names $nll"
+ ldebug c$lchan "all names: $nll"
foreach m [list_objs monitor] {
mon_gotchanlist $m $lchan $nll
}
def_ucmd nodebug {
prefix_nick
+ ta_nomore
global debugusers debug_cancelling
set debugusers {}
catch { after cancel $debug_cancelling }