to make a "recent" server list use the servers your given at connect time. The hostname given by $server after you connect is returned by the server and its not guaranteed to be a valid/real hostname-- replacing it with the "right" one would be using "se.quakenet.org". There's no direct translation between the server you connect to with /server and the hostname the server responds with in $server.