On Wed, 2002-10-16 at 17:17, Thomas J. Stens�s wrote: > On Wednesday 16 October 2002 16:49, Ian Kumlien wrote: > > > I just find it strange from what they do, All they have to do is move 2 > > variables. > > > > Incorrect: > > 330 [London.UK.Eu.UnderNet.org] >WullieW< ziiL zolader :is logged in as > > > > Correct: > > 330 [London.UK.Eu.UnderNet.org] >WullieW< ziiL :is logged in as zolader > > > > Which would work with all damn clients. > > But would contradict all current WHOIS replies in use and make it harder to > parse. Consider the following of which several are standard replies on all > IRCd's:
Not all current whois replies, From your own list it will only be one. > :tsunami.uicn.net 311 ShadowMaster Emperor Shadow server-admin.uicn.net * :To > IRC And Beyond > :tsunami.uicn.net 307 ShadowMaster Emperor :has identified for this nick > :tsunami.uicn.net 319 ShadowMaster Emperor :@#Test #IRCOps #Help > :tsunami.uicn.net 312 ShadowMaster Emperor tsunami.uicn.net :Live Debugging > :tsunami.uicn.net 275 ShadowMaster Emperor :is using a secure connection (SSL) > :tsunami.uicn.net 313 ShadowMaster Emperor :is a Server Administrator > :tsunami.uicn.net 614 ShadowMaster Emperor :is available for help > :tsunami.uicn.net 317 ShadowMaster Emperor 4441 1034775913 :seconds idle, > signon time > :tsunami.uicn.net 318 ShadowMaster emperor :End of /WHOIS list. > > They all carry the trademark of being constructed with easy parsing in mind. > Why should undernet go the opposite way with their new reply and not make it > easilly parseable? It is still easily parsable, strrchr(string, ' '); =) > Undernets new whois reply may not look to good when its not parsed, but > neither do reply 318 when its not parsed. I assume you mean 317 > London.UK.Eu.UnderNet.org 330 ShadowMas Matrix rewt :is logged in as > where rewt is a parameter of its own and is logged in as is a parameter of its > own But since this forces client support it's suboptimal. > London.UK.Eu.UnderNet.org 330 ShadowMas Matrix :is logged in as rewt > where rewt is not a parameter of its own. Better, but if you really don't feel like doing some very basic parsing to get the login name, whatever you'd want to do that for, and the design of it is that important then you could: London.UK.Eu.UnderNet.org 330 ShadowMas Matrix rewt :is logged in as rewt Since thats the best of both worlds and dosn't force client support. (Max waste is still 30 bytes...) -- Ian Kumlien <[EMAIL PROTECTED]> -- Attached file included as plaintext by Ecartis -- -- File: signature.asc -- Desc: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQA9rYWs7F3Euyc51N8RAsIxAJ91R8rJawqsQuapCJiJFfp22LSGCwCfU+8J nt8gvpJE8WebGhO1Z3La1VE= =yqvD -----END PGP SIGNATURE-----
