1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

Syntax rewrite of U-Z commands

Rewrote the syntax documentation of U-Z commands.
This commit is contained in:
Geert Hauwaerts 2014-08-05 22:00:30 +02:00
parent b9f532568b
commit f0aa2d2049
30 changed files with 480 additions and 207 deletions

View File

@ -38,5 +38,5 @@
/SET ban_type custom nick domain
/SET ban_type custom user host
%9See also:%9 KICKBAN, KNOCKOUT
%9See also:%9 DEOP, KICKBAN, KNOCKOUT, OP, UNBAN

View File

@ -1,11 +1,23 @@
%9Syntax:%9
@SYNTAX:time@
This displays the time of day, local to the server queried (thus,
the time returned may not be the same as the client's local time).
%9Parameters%9
If the server name is omitted, the client's current server is used.
If a nickname is given, that client's server is queried.
The channel or the nickname; if no argument is given, the active server
will be used.
Same as /DATE.
%9Description:%9
Displays the local time of a server or the server the target user is
connected to.
%9Examples:%9
/TIME
/TIME mike
/TIME ircsource.irssi.org
%9See also:%9 MAP, TRACE, WHOIS

View File

@ -1,11 +1,22 @@
%9Syntax:%9
@SYNTAX:toggle@
/TOGGLE <key> behaves like /SET <key> TOGGLE. /TOGGLE also
accepts arguments ON and OFF when /TOGGLE behaves exactly
like /SET.
%9Parameters%9
Remember that changes are not saved until you use /SAVE!
The setting to modify and the new value; if no value is given, its oposite
will be used.
See also: SET
%9Description:%9
Modifies a setting to its counter value; you can also give ON or OFF as a
value.
%9Examples:%9
/TOGGLE resolve_prefer_ipv6
/TOGGLE channels_rejoin_unavailable ON
%9See also:%9 SET

View File

@ -1,8 +1,25 @@
%9Syntax:%9
@SYNTAX:topic@
-delete - Deletes the topic.
%9Parameters%9
Shows or/and changes the topic of the current or specified
channel.
-delete: Removes the topic.
The channel and topic; if no channel is given, the active channel will be
used. If no argument is given, the current topic will be displayed.
%9Description:%9
Displays or modifies the topic of a channel.
%9Examples:%9
/TOPIC
/TOPIC The robots are taking over!
/TOPIC -delete #irssi
/TOPIC #shakespeare /bb|[^b]{2}/
%9See also:%9 CHANNEL, DEOP, DEVOICE, JOIN, OP, VOICE

View File

@ -1,12 +1,25 @@
%9Syntax:%9
@SYNTAX:trace@
Without a specified server TRACE shows the current connections on
the local server. If you specify a remote server it will show
all servers between your current server and that remote server
as well as the connections on that remote server. With a nick it
shows the servers in between and information about that nick.
%9Parameters%9
On some servers, TRACE shows information such as IP addresses
and idle times.
The channel or the nickname; if no argument is given, the active server
will be used.
%9Description:%9
Displays the list of servers and users connects to a server, or a list of
the servers between yourself and the target user.
This command is usually restricted to IRC operators.
%9Examples:%9
/TRACE
/TRACE mike
/TRACE ircsource.irssi.org
%9See also:%9 MAP, TIME, WHOIS

View File

@ -1,7 +1,15 @@
%9Syntax:%9
@SYNTAX:ts@
Shows topics of all channels you're on.
%9Description:%9
See also: CHANNEL, TOPIC
Displays a list of the channels you are on and their topics.
%9Examples:%9
/TS
%9See also:%9 JOIN, TOPIC

View File

@ -1,7 +1,20 @@
%9Syntax:%9
@SYNTAX:unalias@
Removes an alias.
%9Parameters%9
See also: ALIAS
The name of the alias.
%9Description:%9
Removes an alias.
%9Examples:%9
/UNALIAS BAN
/UNALIAS K
%9See also:%9 ALIAS

View File

@ -1,13 +1,45 @@
%9Syntax:%9
@SYNTAX:unban@
Removes the specified ban(s) from the channel.
%9Parameters:%9
Examples:
/UNBAN *!*@*.fi
/UNBAN larry!*@* *!me@*.mydomain.net
/UNBAN 3 - removes 3rd ban in list
/UNBAN -first - removes 1st ban (equal to /UNBAN 1)
/UNBAN -last - removes last ban in list
See also: BAN, KNOCKOUT
-normal: Uses the *!*user@*.domain.tld format.
-user: Uses the *!*user@* format.
-host: Uses the *!*@host.domain.tld format.
-domain: Uses the *!*@*.domain.tld format.
-custom: Uses the custom format.
-first: Removes the first ban from the list.
-last: Removes the last ban from the list.
A channel and the nicknames, hostnames or ban identifier to unban; if no
channel is given, the active channel will be used.
If no ban format parameter is given, the value of the ban_type setting will
be used to generate the hostmask to ban.
%9Description:%9
Removes one or more bans from a channel.
%9Configuring the custom format:%9
You must set the custom ban_type to the format you would like to use. For
example, if you set the custom ban_type to "nick domain", it will generate
a ban based on the nick!*@*.domain.tld format.
%9Examples:%9
/UNBAN mike
/UNBAN -host bob
/UNBAN *!*@*.irssi.org
/UNBAN *!*@*.users.irssi.org *!*@*.staff.irssi.org
/UNBAN -first
/UNBAN 5
/SET ban_type custom nick domain
/SET ban_type custom user host
%9See also:%9 BAN, DEOP, KICKBAN, KNOCKOUT, OP

View File

@ -1,8 +1,20 @@
%9Syntax:%9
@SYNTAX:unignore@
Unignores the specified userhost mask. If you want to unignore only some
levels, use /IGNORE <mask> -<level>.
%9Parameters:%9
See also: IGNORE
The ignore identifier or pattern to remove.
%9Description:%9
Removes an entry from the ignore list.
%9Examples:%9
/UNIGNORE 5
/UNIGNORE mike
%9See also:%9 ACCEPT, IGNORE, SILENCE

View File

@ -1,8 +1,19 @@
%9Syntax:%9
@SYNTAX:unload@
Unload a running plugin. List of running plugins can be shown with
/LOAD.
%9Parameters:%9
See also: LOAD
The name of the module to unload.
%9Description:%9
Removes a module from the memory.
%9Examples:%9
/UNLOAD fish
%9See also:%9 LOAD, SCRIPT

View File

@ -1,7 +1,20 @@
%9Syntax:%9
@SYNTAX:unnotify@
Removes an entry from the notify list.
%9Parameters:%9
See also: NOTIFY
The notify pattern to remove.
%9Description:%9
Removes an entry from the notify list.
%9Examples:%9
/UNNOTIFY bob
/UNNOTIFY *!*@staff.irssi.org
%9See also:%9 AWAY, HILIGHT, NOTIFY

View File

@ -1,7 +1,21 @@
@SYNTAX:unquery@
%9Syntax:%9
Removes a query window of specified nick.
@SYNTAX:unnotify@
See also: QUERY, SET QUERY
%9Parameters:%9
The nickname to close the query for; if no argument is given, the active
query is used.
%9Description:%9
Closes a query window for a nickname.
%9Examples:%9
/UNQUERY
/UNQUERY mike
%9See also:%9 MSG, QUERY, WINDOW

View File

@ -1,9 +1,21 @@
%9Syntax:%9
@SYNTAX:unsilence@
Works only in some IRC networks.
%9Parameters:%9
Removes a pattern from your silence list.
The silence pattern to remove.
See also: SILENCE
%9Description:%9
Removes an entry from the silence list. This command does not work on all
IRC networks.
%9Examples:%9
/UNSILENCE mike
/UNSILENCE *!*@*.irssi.org
%9See also:%9 ACCEPT, IGNORE, SILENCE

View File

@ -1,10 +1,22 @@
%9Syntax:%9
@SYNTAX:upgrade@
Upgrade irssi to new version on-the-fly without disconnecting from
server, so other people won't even notice you quit from IRC. This ONLY
executes the new binary, it does NOT download/compile/whatever irssi.
%9Parameters:%9
Warning: This will not work with SSL connections to IRC, you will be
disconnected.
The location of the new binary; if no arguments are given, the current
binary file is used.
%9Description:%9
Upgrades to a new version without disconnecting from non-SSL servers; please
bear in mind that it does not download or compile a new version.
%9Examples:%9
/UPGRADE
/UPGRADE /home/mike/irssi-dev/bin/irssi
%9See also:%9 CONNECT, DISCONNECT, HELP

View File

@ -1,12 +0,0 @@
@SYNTAX:uping@
IRC Operator command. Works only in the Undernet and Open Projects (ircu).
This command works like the PING command (CTCP PING), except
it is used on a server instead of a client. As with PING, it
is used to test the relative distance another server is from
you across the irc network.
See also: RPING, OPER

View File

@ -1,7 +1,22 @@
%9Syntax:%9
@SYNTAX:userhost@
Shows the user@host, IRC operator (*) and away (-) status of the specified nick.
%9Parameters:%9
See also: WHOIS
One or more nicknames separated by space.
%9Description:%9
Displays the user@host for the given nicknames; some common added attributes
are '*' to identify an IRC operator, '-' and '+' to indicate whether the
nickname is AWAY or available.
%9Examples:%9
/USERHOST mike
/USERHOST bob sarah
%9See also:%9 WHOIS

View File

@ -1,9 +1,22 @@
%9Syntax:%9
@SYNTAX:ver@
Sends a CTCP VERSION request to a nick or channel.
This is used to find out which client and/or
script the nick is using.
%9Parameters:%9
See also: CTCP
A nickname, channel or the wildcard character '*'.
%9Description:%9
Send a CTCP VERION request to the target nickname, channel or to all the
users on the channel.
%9Examples:%9
/VER *
/VER #irssi
/VER mike
%9See also:%9 CTCP

View File

@ -1,8 +1,21 @@
%9Syntax:%9
@SYNTAX:version@
Shows the version info of the current or specified
IRC server.
%9Parameters:%9
See also: ADMIN, STATS
A nickname or server; if no argument is given, the active server is used.
%9Description:%9
Displays the version and compatibility parameters of the given server, or
for the server the target nickname is on.
%9Examples:%9
/VERSION mike
/VERSION ircsource.irssi.org
%9See also:%9 ADMIN, STATS

View File

@ -1,8 +1,23 @@
%9Syntax:%9
@SYNTAX:voice@
Gives the voice (+v mode) to the nick(s) on the current channel.
Wildcards in the nick are allowed.
See also: DEVOICE, OP, DEOP
%9Parameters:%9
A list of nicknames to voice.
%9Description:%9
Grants the channel voice privileges to the given nicknames; you may use
the wildcard character "*" in a nickname.
%9Examples:%9
/VOICE mike
/VOICE bob sarah
/VOICE jo*n
/VOICE *
%9See also:%9 DEOP, DEVOICE, KICK, MODE, OP

View File

@ -1,10 +1,21 @@
%9Syntax:%9
@SYNTAX:wait@
Wait for <milliseconds> before sending the next command to server.
%9Parameters:%9
This could be useful for example when identifying to NickServ; after
sending the identify message you'd wait 3 seconds before joining to
channels so any host changes are processed and you can join
registered-only channels.
The amount of milliseconds.
%9Description:%9
Waits the specified amount of milliseconds before sending the next command
to the server.
%9Examples:%9
/WAIT 1000
/WAIT 5000
%9See also:%9 ALIAS

View File

@ -1,8 +1,23 @@
%9Syntax:%9
@SYNTAX:wall@
This command sends a message to all operators in a channel. If the server
supports WALLCHOPS or STATUSMSG=@, it sends a notice to @#channel.
Otherwise it sends a notice separately to each operator, which may not
be a very good idea to use in a channel with lots of operators.
%9Parameters:%9
The channel and the message; if no channel is given, the active channel
will be used.
%9Description:%9
Sends a message to all channel operators. If the server doesn't support
WALLCHOPS or STATUSMSG it will send a notice to each channel operator
individually.
%9Examples:%9
/WALL I'm off for today; take care! :)
/WALL #irssi I'm feeling supercalifragilisticexpialidocious today :D
%9See also:%9 MSG, NOTICE

View File

@ -1,9 +1,20 @@
%9Syntax:%9
@SYNTAX:wallops@
IRC operator command.
%9Parameters:%9
This command sends the given message to everyone on
the network who has user mode +w turned on.
The message to broadcast.
%9Description:%9
Sends a network wide message to all the users which have the usermode 'w'
enabled; this command is restricted to IRC operators.
%9Examples:%9
/WALLOPS Hi everybody!
%9See also:%9 OPER, STATS
See also: OPER, WALLOPS

View File

@ -1,18 +0,0 @@
WATCH %|[[+|-]<nick>][ [+|-]<nick> ...]
Works only in networks using Bahamut ircd.
WATCH is somewhat equal to ISON/NOTIFY, but server-based. With WATCH
server sends status information to client, instead of client sending
ISON's. Therefore WATCH is technically a bit smarter solution than
ISON/NOTIFY. The only disadvantage is your WATCH list not being
"saved". Once you disconnect, your WATCH list will get cleared.
WATCH is based on a nick, and must be prepended with a plus ('+') to be
added to your watch list. A minus sign ('-') will remove an entry from
the list. With no arguments, WATCH returns a list of your WATCH list
entries.
See also: NOTIFY, WHOIS, WHOWAS

View File

@ -1,31 +1,36 @@
%9Syntax:%9
@SYNTAX:who@
Without parameters, shows all users and their user infos
on the current channel. If you specify a channel, shows
all users on the given channel.
%9Parameters:%9
If you specify an string with wildcards, you will be
shown all users whose nick, userhost or realname matches
the wildcard expression.
The channel name or output filter; if no arguments are given, the current
channel will be used.
If a channel is secret and you're not on it, you will not
get any output. Otherwise if you're not on it, you will be
shown only those channel members who do not have the
invisible (+i) mode set.
%9Description:%9
The flags field has the following meaning:
H - The user is not away (here).
G - The user is set away (gone).
* - The user is an IRC operator.
@ - The user is a channel op in the channel listed.
+ - The user is voiced in the channel listed.
Displays information about users in the specified channel. If you specify a
filter, all the users whos nick, userhost or realname matches the filter
will be returned.
Examples:
/WHO - Shows users on current channel
/WHO #irssi - Shows users on channel #irssi
/WHO timo* - Shows users whose nick, userhost,
or realname begins with string 'timo'
If the channel is secret and you are not on it, you will not receive any
output.
See also: WHOIS, NAMES, CHANNEL
Common flags:
H: The user is available.
G: The user is away.
*: The user is an IRC operator.
@: The user is a channel operator.
+: The user is a channel voice.
%9Examples:%9
/WHO
/WHO #irssi
/WHO bob
/WHO sar*
%9See also:%9 CHANNEL, NAMES, WHOIS

View File

@ -1,15 +1,30 @@
%9Syntax:%9
@SYNTAX:whois@
Shows whois information of the specified nick.
By default, this is aliased to /WI.
%9Parameters:%9
/WHOIS nick1 nick1 also queries the idle time of
the user. This is aliased to /WII by default.
-<server tag>: The server tag the target nickname is on.
If given nick is not in the IRC, irssi automatically
sends a WHOWAS query. Read carefully the reply to see
if it is a WHOIS or WHOWAS reply.
The remote server to query and the nicknames; if no remote server is given,
the server you are connected to will be used. If no nickname is given, you
will query yourself.
See also: WHO, CHANNEL
%9Description:%9
Displays information about users in the specified channel; you may give the
same nickname as the argument twice to also query the idle time.
If the nickname is not online, the WHOWAS command will be automatically
performed.
%9Examples:%9
/WHOIS
/WHOIS mike
/WHOIS ircsource.irssi.org bob
/WHOIS sarah sarah
%9See also:%9 CHANNEL, NAMES, WHO, WHOWAS

View File

@ -1,19 +1,24 @@
%9Syntax:%9
@SYNTAX:whowas@
This command is similar to WHOIS, except it returns information
about nicknames that were recently in use. Like WHOIS, it shows
the nickname, address, real name, and server. It may also return
multiple entries if the nickname has been used recently by several
people. These multiples may be limited by specifying a count to show.
%9Parameters:%9
WHOWAS will work regardless of whether the queried nick is in use.
If no arguments are given, the client's current nickname is used.
The nicknames, the maximum amount of results and the remote server. If no
arguments are given, your own nickname will be used. If no remote server is
given, the server you are connected to will be used.
Example: To show the last 5 users of the nickname JoeBob:
%9Description:%9
/whowas joebob 5
Displays historical user information.
%9Examples:%9
See also: WHOIS
/WHOWAS
/WHOWAS mike
/WHOWAS bob 10
/WHOWAS sarah 5 ircsource.irssi.org
%9See also:%9 CHANNEL, NAMES, WHO, WHOIS

View File

@ -1,46 +1,71 @@
%9Syntax:%9
@SYNTAX:window@
This command includes various subcommands for handling
irssi windows.
%9Parameters:%9
/WINDOW CLOSE
- Closes the current window.
/WINDOW MOVE #NUMBER|LEFT|RIGHT
- Moves current window to another position in the
window list.
/WINDOW GOTO #NUMBER
- Moves into the specified window.
/WINDOW GOTO ACTIVE
- finds the first window with the higest
activity (msgs to you -> msgs -> rest). Alt-A is
the default shortcut key for this
/WINDOW GOTO #CHANNEL|NICK|=NICK
- moves you to the window with the channel, query or
dcc chat.
/WINDOW LEVEL [+/-]PUB/MSGS/...
- /window level msgs - creates messages window
- /window level all -msgs - creates status window
/WINDOW NEW [HIDDEN|SPLIT]
- creates new hidden/splitted window,
/WINDOW ITEM MOVE <number>|<name>
- with a numeric argument, moves the active window
item of the active window to the window with
refnum <number>.
with a string argument, moves the window item with
name <name> to the active window.
LOG: Modifies the logging status.
LOGFILE: Modifies the location to the logfile.
NEW: Creates a new window.
CLOSE: Closes a window.
REFNUM: Go to the window with the given number.
GOTO: Go to the window with the given nickname, channel or number.
NEXT: Go to the next window.
LAST: Go to the last window.
PREVIOUS: Go to the previous window.
LEVEL: Modifies the text levels to display in the window.
IMMORTAL: Modifies the window mortality status.
SERVER: Set the active server of the window.
ITEM PREV: Go to the previous item in the window.
ITEM NEXT: Go to the next item in the window.
ITEM GOTO: Go to the specified nickname, channel or window item number.
ITEM MOVE: Move the active window item to another window.
NUMBER: Move the active window to another position.
NAME: Give the window a name.
HISTORY: Clears the window history buffer.
MOVE PREV: Move the window down.
MOVE NEXT: Move the window up.
MOVE FIRST: Move the window to the first position.
MOVE LAST: Move the window to the last psotion.
MOVE: Move the window.
LIST: List all the windows.
THEME: Applies a theme to the windows.
GROW: Increase the window size when using split windows.
SHRINK: Decrease the window size when using split windows.
SIZE: Modify the window size when using split windows.
BALANCE: Balance the window locations when using split windows.
HIDE: Hide the window when using split windows.
SHOW: Show the window when using split windows.
UP: Go to the window above when using split windows.
DOWN: Go to the window below when using split windows.
LEFT: Go to the previous window.
RIGHT: Go to the next window.
STICK: Make the window sticky.
MOVE LEFT: Move the window to the previous location.
MOVE RIGHT: Move the window to the next location.
MOVE UP: Move the window up when using split windows.
MOVE DOWN: Move the window down when using split windows.
Window logging
/WINDOW LOG ON|OFF|TOGGLE [<filename>]
- Start/stop logging the active window. This works exactly like
/LOG OPEN -window.
/WINDOW LOGFILE <filename>
- Sets the default log file to use in the window, it can be
overridden by specifying the file name in /WINDOW LOG.
If no file name is given, Irssi defaults to
~/irc.log.<windowname> or ~/irc.log.Window<ref#> if window
doesn't have a name.
Add the required arguments for the given command.
See also: SET CREATE, JOIN, QUERY, LOG, LEVELS
%9Description:%9
Manipulates the window layout and positioning attributes.
%9Examples:%9
/WINDOW CLOSE
/WINDOW ITEM MOVE 10
/WINDOW GOTO 15
/WINDOW GOTO ACTIVE
/WINDOW GOTO mike
/WINDOW GOTO #irssi
/WINDOW NEW HIDDEN
/WINDOW LOG OFF
/WINDOW LOG ON ~/logs/debug.log
/WINDOW LEVEL -ALL +NOTICES
/WINDOW LOGFILE ~/logs/notices.log
%9See also:%9 JOIN, LEVELS, LOG, QUERY

View File

@ -1,9 +0,0 @@
@SYNTAX:wjoin@
With this you can join multiple channels in same
window. This command does the same as /JOIN but
it doesn't create a new window for the channel joined.
See also: JOIN, WINDOW

View File

@ -1,8 +0,0 @@
@SYNTAX:wquery@
Starts a query in the current window without
opening a new window.
See also: QUERY, WINDOW, SET AUTOCREATE

View File

@ -1012,8 +1012,6 @@ void irc_commands_init(void)
command_bind_irc("restart", NULL, (SIGNAL_FUNC) command_self);
/* SYNTAX: SQUIT <server>|<mask> <reason> */
command_bind_irc("squit", NULL, (SIGNAL_FUNC) command_2self);
/* SYNTAX: UPING <server> */
command_bind_irc("uping", NULL, (SIGNAL_FUNC) command_self);
/* SYNTAX: USERHOST <nicks> */
command_bind_irc("userhost", NULL, (SIGNAL_FUNC) command_self);
command_bind_irc("quote", NULL, (SIGNAL_FUNC) cmd_quote);
@ -1081,7 +1079,6 @@ void irc_commands_deinit(void)
command_unbind("oper", (SIGNAL_FUNC) cmd_oper);
command_unbind("restart", (SIGNAL_FUNC) command_self);
command_unbind("squit", (SIGNAL_FUNC) command_2self);
command_unbind("uping", (SIGNAL_FUNC) command_self);
command_unbind("userhost", (SIGNAL_FUNC) command_self);
command_unbind("quote", (SIGNAL_FUNC) cmd_quote);
command_unbind("wall", (SIGNAL_FUNC) cmd_wall);