Ahh ok, i am connected to many different servers as the same nickname, so this script to me would be fairly useless without the changes i'd make.
I don't really get your comment though, using $server? I suggested $network which gives the network suggested name of the server you're on.
How about comine them both so you would get something like "QuakeNet (Jonesy44)"?