i have 2 questions:
1- if i have bind join - * proc1
do nicks rejoining from a split activate proc1?
if it does, how can i ignore rejoining nicks and stop the proc from continuing
2- am using this queue implementation i found on the net:
Code: Select all
proc qinit {qvar} {
upvar 1 $qvar Q
set Q(i) 0
set Q(l) [list]
set Q(r) [list]
}
proc qput {qvar elem} {
upvar 1 $qvar Q
lappend Q(r) $elem
}
proc qget {qvar} {
upvar 1 $qvar Q
if {$Q(i) >= [llength $Q(l)]} {
set Q(l) $Q(r)
set Q(r) [list]
set Q(i) 0
}
set head [lindex $Q(l) $Q(i)]
incr Q(i)
return $head
}
proc qempty {qvar} {
upvar 1 $qvar Q
return [expr {$Q(i) >= [llength $Q(l)] && [llength $Q(r)] == 0}]
}
thanks alot.