|
Joined: Aug 2003
Posts: 148
Vogon poet
|
OP
Vogon poet
Joined: Aug 2003
Posts: 148 |
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!)
_________ may death strike you.
|
|
|
|
Joined: Feb 2003
Posts: 15
Pikka bird
|
Pikka bird
Joined: Feb 2003
Posts: 15 |
you need following things on remote ....
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:#: if (!$dialog(list)) { dialog -m list list | who # } | else { who # } raw 352:*: if ($dialog(list)) { did -a list 2 $6 *!* $+ @ $+ $4 }
|
|
|
|
Joined: Aug 2003
Posts: 148
Vogon poet
|
OP
Vogon poet
Joined: Aug 2003
Posts: 148 |
[edit] that listed everyone... im trying to list only people with this:*!*@*.staff.freenode Dont work:
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 }
}
}
Last edited by KoRn18; 31/08/03 07:16 PM.
_________ may death strike you.
|
|
|
|
Joined: Apr 2003
Posts: 300
Fjord artisan
|
Fjord artisan
Joined: Apr 2003
Posts: 300 |
do this: if (*.staff.freenode isin $4) { did -a list 2 $6 }
Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
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 }
}
that will who the staff when you join, then the raw events will only do that^,when you use /whostaff.
new username: tidy_trax
|
|
|
|
Joined: Aug 2003
Posts: 148
Vogon poet
|
OP
Vogon poet
Joined: Aug 2003
Posts: 148 |
i have this now, how can i cycle through and notice them all?
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 }
}
_________ may death strike you.
|
|
|
|
Joined: Feb 2003
Posts: 15
Pikka bird
|
Pikka bird
Joined: Feb 2003
Posts: 15 |
if (*.staff.freenode iswm $4) { did -a list 2 $6 *!* $+ @ $+ $4 }
and you can add this ...
on *:join:#: { if (*.staff.freenode iswm $site) { if ($dialog(list)) { did -a list 2 $nick $wildsite } else { dialog -m list list did -a list 2 $nick $wildsite } } }
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
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 }
}
new username: tidy_trax
|
|
|
|
Joined: Aug 2003
Posts: 148
Vogon poet
|
OP
Vogon poet
Joined: Aug 2003
Posts: 148 |
for whom it may concern...it works..ty
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 }
}
_________ may death strike you.
|
|
|
|
Joined: Dec 2002
Posts: 1,541
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,541 |
FYI, you could also do this:
on me:*:join:#freenode:/liststaff
It is by far not NEEDED, but it is usable; in this case using a comparison isnt needed
Those who fail history are doomed to repeat it
|
|
|
|
|