dialog list {
title "#FreeNode Staff List/Voice Asker"
size -1 -1 104 248
option pixels
list 2, 1 1 102 200, sort size hsbar
button "Ask +V", 1, 27 201 47 20
text "", 3, -1 229 102 16, center
}
alias liststaff {
if (!$dialog(list)) { dialog -m list list }
else { dialog -x list list | dialog -m list list }
did -r list 2 | who *.staff.freenode
.timerlist 1 1 did -ra list 3 $!did(list,2).lines Staffers
}
on *:dialog:list:sclick:1:msgstaff
alias msgstaff {
var %x $did(list,2).lines
while (%x) {
notice $did(list,2,%x).text Hi.. Can i get a Voice in #FreeNode please?
dec %x
}
}
raw 352:*:{
if ($2 == #freenode) { did -a list 2 $6 }
}
raw 315:*:{
if (!$did(list,2).lines) { did -a list 2 No Staff Found }
}
on *:JOIN:#freenode:{
if ($nick == $me) { liststaff }
}