Skip to content
General IRCd

Listing servers

A TG007 community discussion started by Simon.

Discussion 5 posts
Page 1 of 1
Open
Topic #6690 · 5 published posts · 2,240 views

Hello, I'm trying to get a code that will display in a docked dialog what serevr I am currently using.

 

 

Normally I use:

did -ra $dname $server

When I connect to a server, but, lately I've been using up to 3 servers at a time. HOw can I make it so that when I toggle between servers it w ill display the current server in my dialog?

 

Thanks in advance :)

 

PS - I tried a lame loop but had to keep hitting ctrl/break :P

Edited May 21, 2006 3:29 AM by Vegeta

Get the Tech outta here!

try

on *:active:*: {  did -ra dialogname dialogid $server }

try

on *:active:*: {  did -ra dialogname dialogid $server }

 

Nopers :( I think I had tried that some time ago to no avail. I think it would need to be some sort of loop but I can't figure it out :)

 

Thank you anyway, err0rbob

Get the Tech outta here!

Nope, you don't need a loop. What err0r posted is what I use in my statusbar for my script's code. Works perfect really.. I'm using DCX though, so I don't use /did -ra stuff.... I use /xdid crap.

 

IPB Image

 

Works whenever I go to windows on different servers like it should be. I would be happy to share the code...but it's exactly the same as err0rs up there ^^ lol.

err0r: 666 + 1337 = 2003 backwards is 3002 which is how many people ozzy has banned from tg
err0r: spooky

EDIT- Fixed and it is working. Thank you. I could have had this working all along lol but a simple piece of logic escaped me! :P

Thanks again :)

Edited May 21, 2006 8:54 PM by Vegeta

Get the Tech outta here!