Difference between revisions of "Raw 354"

From Scriptwiki
Jump to: navigation, search
m (reworded flags parameter partm updated link to readme.who, corrected example from woobie to Dana, corrected meaning of x in flags part, added oplevel)
m (added note about @+ both being returned in flags part when user is both voiced and opped)
Line 59: Line 59:
 
the * is shown if the user is an IRC Operator
 
the * is shown if the user is an IRC Operator
  
the prefixes the user has on &lt;channel&gt;, ! = zombie, @ = opped, + = voiced, < = delayedjoin
+
the prefixes the user has on &lt;channel&gt;, ! = zombie, @ = opped, + = voiced, < = delayedjoin (note: if the user is both voiced and opped, both + and @ are shown)
  
 
the [&lt;usermodes&gt;] part shows the usermodes the user has set
 
the [&lt;usermodes&gt;] part shows the usermodes the user has set

Revision as of 14:16, 17 March 2011

Name:RPL_WHOSPCRPL
Format:<source> 354 <target> [<querytype>] [<channel>] [<user>] [<ip>] [<host>] [<server>] [<nick>] [<flags>] [<distance>] [<idle_time>] [<account>] [<oplevel>] [:<realname>]
Info:

This is returned when using the WHO command

  • [<channel>]
requested channel or last channel joined by the user without chanmode +p/+s
  • [<user>]
the username, nick!USER@host
  • [<ip>]
the user is connected from this IP
  • [<host>]
the hostname the user has on IRC, nick!user@HOST
  • [<server>]
which server the user is on
  • [<nick>]
the nick of the user
  • [<flags>]

the flags part is formatted as <H|G>[*][!@+<][<usermodes>]

the H stands for Here and is returned if the user is not marked as being away

the G means Gone and is returned if the user is marked as being away

the * is shown if the user is an IRC Operator

the prefixes the user has on <channel>, ! = zombie, @ = opped, + = voiced, < = delayedjoin (note: if the user is both voiced and opped, both + and @ are shown)

the [<usermodes>] part shows the usermodes the user has set

ordinary users can see d (deaf) and x (hiddenhost) modes, note: the x here is only shown if the user also has an account set, and thus has their host hidden with users.quakenet.org

IRC Operators can also see i (invisible), w (wallops), g (debug), and h (sethost) modes

  • [<distance>]
number of servers between you and the user
  • [<idle_time>]
returns the user's idle-time if the user is using the same server as you
  • [<account>]
the user is registered under this account with the network (0 for none)
  • [<oplevel>]
the user's oplevel (0-999) on <channel>, "n/a" is shown when user is not opped, the real oplevel is only shown to channel operators and IRC operators, else oplevel 999 is shown
  • [:<realname>]
the user's realname

for more information on the WHO command see:
http://www.mircscripts.org/showdoc.php?type=tutorial&id=2412
http://hg.quakenet.org/snircd/file/tip/doc/readme.who
http://ircu.sourceforge.net/release.2.10.01-who.html

Example: irc.quakenet.org 354 Dana 544 #help.script Dana 127.0.0.1 Dana.users.quakenet.org *.quakenet.org Dana G+x 3 0 Dana :Dana