Jump to content

Server List


S0RD3N

Recommended Posts

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

 

Link to comment
Share on other sites

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 by The Gate Keeper
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...