who
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | who [2008/07/28 05:15] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | # $EPIC: who.txt,v 1.3 2008/07/28 05:15:51 jnelson Exp $ | ||
+ | |||
+ | ======Synopsis: | ||
+ | __who__ [< | ||
+ | |||
+ | ======Description: | ||
+ | The __WHO__ command queries detailed information about a target or | ||
+ | wildcard pattern. | ||
+ | their nickname, userhost address, realname (IRCNAME), their current | ||
+ | channel (if it is public), whether they are a chanop or chanvoice there, | ||
+ | whether they are here or gone, and whether they are an irc operator. | ||
+ | |||
+ | The __WHO__ command uses the same rules as [[NAMES]] and [[LIST]] to | ||
+ | determine which users will be returned. | ||
+ | returned, and users on secret or private channels are never returned. | ||
+ | Notwithstanding this, if you are on the same channel as someone else, | ||
+ | they will be returned. | ||
+ | |||
+ | The client can do client-side filtering, to reduce the number of users shown. | ||
+ | |||
+ | Undernet and Dalnet each have (incompatible) server-side filtering. | ||
+ | |||
+ | ======Options: | ||
+ | Options may be abbreviated, | ||
+ | If you specify any unrecognized options, the entire request is aborted. | ||
+ | |||
+ | < | ||
+ | - Universal server-side filtering options: | ||
+ | -oper Show only irc operators | ||
+ | Only one of the following options may be used in each request: | ||
+ | -host < | ||
+ | -server < | ||
+ | -name < | ||
+ | -realname < | ||
+ | -nick < | ||
+ | |||
+ | - Undernet-specific server-side filtering options: | ||
+ | | ||
+ | | ||
+ | (Cannot be used with any other options) | ||
+ | |||
+ | - Dalnet-specific server-side filtering options: | ||
+ | | ||
+ | | ||
+ | |||
+ | - Client-side filtering options: | ||
+ | -lusers | ||
+ | -chops | ||
+ | -nochops | ||
+ | -here Show only non-away users | ||
+ | -away Show only away users | ||
+ | |||
+ | - Reply processing: | ||
+ | -line {...} | ||
+ | hook /on WHO. | ||
+ | The parameters to -line are exactly the same as the | ||
+ | parameters to [[ON WHO]]. | ||
+ | |||
+ | -end {...} Execute the code for the last line and DO | ||
+ | NOT hook /on 315. | ||
+ | The parameters to -end are as follows: | ||
+ | $0 name of server queried | ||
+ | $1 body of the query | ||
+ | |||
+ | - Debugging: | ||
+ | -literal | ||
+ | server with no client processing of the | ||
+ | request. | ||
+ | -flush | ||
+ | -diagnose | ||
+ | </ | ||
+ | |||
+ | ======Examples: | ||
+ | To list all irc operators on servers from foo.com: | ||
+ | /who -o -s *.foo.com | ||
+ | |||
+ | To list the channel operators on channel #blah, which you are on: | ||
+ | /who -c #blah | ||
+ | |||
+ | To list all users from Russia, saving it to a file: | ||
+ | /who -h *.ru -f ru.users | ||
+ | |||
+ | To list all non-opers and say something at the end: | ||
+ | /who -lusers -end { echo sheesh. that's a lot of lusers! } | ||
who.txt · Last modified: 2008/07/28 05:15 by 127.0.0.1