Jump to content

help with niclist


wilskye

Recommended Posts

[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

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...