Skip to content
General IRCX

help with niclist

A TG007 community discussion started by wilskye.

Discussion 4 posts
Page 1 of 1
Open
Topic #2356 · 4 published posts · 1,425 views

[alias getnicks {

var %x = 1

who $1

did -r nick $+ $1 1 while (%x <= $nick($1,0)) {

did -a nick $+ $1 1 0 + $nickicon($nick($1,%x),$1) $opshow($nick($1,%x),$1) $+ $replace($msn.decode($nick($1,%x)),>,Guest_) $+ $chr(9) $+ + 0 $nick($1,%x)

inc %x

}

]

 

alias filllistbox {

did -r $1 $2

var %c = 1 | var %n = $lines($3)

while (%c <= %n) {

did -a $1 $2 $gettok($read($3,%c),$4,32)

inc %c

]

this what i found from my connection

 

wilskye

Try this...

 

alias getnicks {
var %x = 1
who $1
did -r nick $+ $1 1 {
did -a nick $+ $1 1 0 + $nickicon($nick($1,%x),$1) $opshow($nick($1,%x),$1) $+ $replace($msn.decode($nick($1,%x)),>,Guest_) $+ $chr(9) $+ + 0 $nick($1,%x)
inc %x
} 
]

alias filllistbox {
did -r nick $+ $1 1
var %c = 1 | var %n = $lines($2)
while (%c <= %n) {
did -a nick $+ 1 $gettok($read($2,%c),$3,32)
inc %c

 

Without the entire code you have I don't know how you've got it set up. However, when you use the did -r event you usually have to give the name of the dialog along with the id of the item in which to remove what you have in it.

 

ty so much warrior helped greatly

np. Glad to help.