[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: /who mask



Matus "fantomas" Uhlar wrote:
> 
> ->  "I wouldn't do that if I were you"
> ->
> -> Thats ircII, not stealth. Some people really think who is really the best
> -> command cause of all its parameters (like /who -oper *.de), but its
> -> actually only their client who parses it :-) To make a point, leave
> -> who like it is too, maybe someone wants to see all visible users
> -> (spammers for example) :P
> 
> ircd DOES process wildmatch for who requests. As long as we refused do that
> for /list we could refuse that for who...
> 
> who *fant*
> :netlab.irc.sk 352 fant #A09b ~Fantasia p04-dn04kokuryo.gunma.ocn.ne.jp *.jp OLFI H@ :10 Rurt
> :netlab.irc.sk 352 fant #asp ~fx 159.148.74.208 *.lv Fantomass H :7 we know, who you are...
> :netlab.irc.sk 352 fant #Bastian ~nowotnic fossi.uni-weimar.de *.DE Bastian H@ :3 IM Fanta
> :netlab.irc.sk 352 fant #flirt.de comp5 ns.neworld.de *.DE fantasygi H :2 -Neworld5 <--- bitte nicht ändern
> :netlab.irc.sk 352 fant * fantomas fantomas.fantomas.sk telecom.irc.sk fanto H* :1 fantomas
> :netlab.irc.sk 352 fant #cs fantomas fantomas.fantomas.sk netlab.irc.sk fantomas H@ :0 fantomas
> :netlab.irc.sk 352 fant #eu-opers fantomas home.fantomas.sk netlab.irc.sk fantohome G@ :0 fantomas
> :netlab.irc.sk 352 fant #kosice tandlich fantomas.fantomas.sk netlab.irc.sk Gil-galad G@ :0 Vsetci okolo mna su blazni, iba ja som LJETADLO
> :netlab.irc.sk 352 fant * uhlar work.fantomas.sk netlab.irc.sk fant H :0 .
> :netlab.irc.sk 315 fant *fant* :End of WHO list.
> 
> who *.de o
> :netlab.irc.sk 352 fant * andrea funny.shuttle.de *.DE Princess G* :2 My nick since November 1990 ;-)
> :netlab.irc.sk 352 fant * langd hpleo6.leo.org *.DE Mr-Spock H* :4 Daniel Lang
> :netlab.irc.sk 352 fant #gaymuenchen ~ag opmafia.muc.de *.DE argv H*@ :4 Armin Gruner
> :netlab.irc.sk 352 fant #Netscape freddy usenet.de *.DE Freddy G*@ :3 Frank Altpeter
> :netlab.irc.sk 352 fant #erlangen ~irc ircserver.rrze.uni-erlangen.de *.DE Guenthi H*@ :3 Joern Westermann
> :netlab.irc.sk 315 fant *.de :End of WHO list.
> 

From RFC:

4.5.1 Who query

      Command: WHO
   Parameters: [<name> [<o>]]

   The WHO message is used by a client to generate a query which returns
   a list of information which 'matches' the <name> parameter given by
   the client.  In the absence of the <name> parameter, all visible
   (users who aren't invisible (user mode +i) and who don't have a
   common channel with the requesting client) are listed.  The same
   result can be achieved by using a <name> of "0" or any wildcard which
   will end up matching every entry possible.

   The <name> passed to WHO is matched against users' host, server, real
   name and nickname if the channel <name> cannot be found.

   If the "o" parameter is passed only operators are returned according
   to the name mask supplied.


The output you got is what rfc said you should get.

Some clients allow you to give more params, like /who #chan mask, where
they do a "who #chan", and only return the those who match the mask.


4.2.6 List message

      Command: LIST
   Parameters: [<channel>{,<channel>} [<server>]]

   The list message is used to list channels and their topics.  If  the
   <channel>  parameter  is  used,  only  the  status  of  that  channel
   is displayed.  Private  channels  are  listed  (without  their
   topics)  as channel "Prv" unless the client generating the query is
   actually on that channel.  Likewise, secret channels are not listed
   at  all  unless  the client is a member of the channel in question.


RFC says nothing about masks or match in list


Q