Skip to content
General IRCd

Server List

A TG007 community discussion started by S0RD3N.

Discussion 13 posts
Page 1 of 1
Open
Topic #5029 · 13 published posts · 3,535 views

Hey,

I'm having a little problem with my toolbar. I figured instead of having a custom dialog showing the server list (since mIRC's is just fine and dialogs would be very limited and small for the list) I would just put the /list command on a button in my toolbar. Yeah, it doesn't work too well.

 

Here's my coding:

 

on *:dialog:toolbar:sclick:1:{
;Set the buttons id in %click
 var %click $did($dname,1).sel
;Make the events happen; Buttons start at "2"
 if (%click == 2) return
 if (%click == 4) .list
 if (%click == 6) $dialog.open(about)
}

 

Now let me explain the situation. I join a server. Click it and it works perfectly. Great! So now I connect to another server and click the button again. It brings up the list for the first server.

 

How can I fix this?

 

Thanks in advanced,

-S0RD3N

 

"If you don't risk anything you risk even more." - Erica Jong

put scid $activecid before list

 

on *:dialog:toolbar:sclick:1:{
scid $activecid
;Set the buttons id in %click
var %click $did($dname,1).sel
;Make the events happen; Buttons start at "2"
if (%click == 2) return
if (%click == 4) .list
if (%click == 6) $dialog.open(about)
}

"the important thing was, that i had an onion on my belt, which was the style at the time"

on *:dialog:toolbar:sclick:1:{
;Set the buttons id in %click
var %click $did($dname,1).sel
;Make the events happen; Buttons start at "2"
if (%click == 2) return
elseif (%click == 4) { scid $window($active).cid | .list | scid -r }
elseif (%click == 6) $dialog.open(about)
}

 

try that.

Edited Oct 21, 2005 10:35 PM by The Gate Keeper

Still doing the same thing guys. :(

"If you don't risk anything you risk even more." - Erica Jong

is your script on multiple servers ?

 

if its multi server then try this /scid $window($active).cid list

 

 

 

 

 

My code does NOT have bugs. It just develops random features.

yeah it's on multiple servers but only gives me the list for the first server I ever joined.... And the /scid $window($active).cid list doesn't work. :( I had this problem when I did a dialog list too.

"If you don't risk anything you risk even more." - Erica Jong

have you tried /server list

 

/server being the one you want to list

My code does NOT have bugs. It just develops random features.

I don't understand... I tried

 

/server list

/irc.server.net list

 

and they both don't work.. what are you trying to say? lol

"If you don't risk anything you risk even more." - Erica Jong

when in doubt, cheat

editbox /list $crlf

People are like slinkies; they're generally boring until you push them down stairs

ROFL angelia, good one

That doesn't even work Angelia :| Okay... This is really strange now.

"If you don't risk anything you risk even more." - Erica Jong

try a normal command to see if it works then like: echo -s hello

People are like slinkies; they're generally boring until you push them down stairs

it echo'd in the first server's status window. :\

"If you don't risk anything you risk even more." - Erica Jong