join - 31/08/03 05:39 PM
how can i on join, get a list of people with *@*.staff.freenode in a list box dialog?
(i know i posted before but i made it sound so difficultl!)
(i know i posted before but i made it sound so difficultl!)
dialog list { title "list" size -1 -1 200 200 button "OK",1, 170 75 20 20, OK list 2, 1 1 150 200, hsbar } on me:*:join:#freenode: { if (!$dialog(list)) { dialog -m list list | who # } else { dialog -x list list | dialog -m list list | who # } } raw 352:*: { if ($dialog(list)) { if ($4 == *.staff.freenode) { did -a list 2 $6 } } }
alias whostaff { set %s.search on did -r list 2 who *!*@*.staff.freenode } raw 352:*:{ if (%s.search == on) { did -a list 2 $2 - $6 } } raw 315:*:{ if (%s.search == on) { if (!$did(list,2).lines) { did -a list 2 No Staff Found } did -z list 2 .set %s.search off } } on *:JOIN:#:{ if ($nick == $me) { whostaff } }
dialog list { title "list" size -1 -1 200 200 button "OK",1, 170 75 20 20, OK list 2, 1 1 150 200, hsbar } alias whostaff { did -r list 2 | who *.staff.freenode } 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 (!$dialog(list)) { dialog -m list list } else { dialog -x list list | dialog -m list list } if ($nick == $me) { whostaff } }
dialog list { title "list" size -1 -1 200 200 button "OK",1, 170 75 20 20, OK list 2, 1 1 150 200, hsbar } alias whostaff { did -r list 2 | who *.staff.freenode } raw 352:*:{ if ($2 == #freenode) { did -a list 2 $6 } } raw 315:*:{ if (!$did(list,2).lines) { did -a list 2 No Staff Found } else { var %x $did(list,2).lines while (%x) { notice $did(list,2,%x).text <your message> dec %x } } on *:JOIN:#freenode:{ if (!$dialog(list)) { dialog -m list list } else { dialog -x list list | dialog -m list list } if ($nick == $me) { whostaff } }
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 } }