From 350938181b1bfb5b8854a9e0ace387fa10afb73d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= <flashcode@flashtux.org>
Date: Mon, 24 Aug 2015 10:02:38 +0200
Subject: irc: add command /cap (closes #8)

---
 doc/en/autogen/user/irc_commands.asciidoc | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

(limited to 'doc/en/autogen/user/irc_commands.asciidoc')

diff --git a/doc/en/autogen/user/irc_commands.asciidoc b/doc/en/autogen/user/irc_commands.asciidoc
index 0554e74e7..dc988aa6f 100644
--- a/doc/en/autogen/user/irc_commands.asciidoc
+++ b/doc/en/autogen/user/irc_commands.asciidoc
@@ -84,6 +84,35 @@ channel: channel name
 Without argument, this command display ban list for current channel.
 ----
 
+[[command_irc_cap]]
+[command]*`cap`* client capability negotiation::
+
+----
+/cap  ls
+      list
+      req|ack [<capability> [<capability>...]]
+      clear
+      end
+
+   ls: list the capabilities supported by the server
+ list: list the capabilities currently enabled
+  req: request a capability
+  ack: acknowledge capabilities which require client-side acknowledgement
+clear: clear the capabilities currently enabled
+  end: end the capability negotiation
+
+Without argument, "ls" and "list" are sent.
+
+Capabilities supported by WeeChat are: account-notify, away-notify, extended-join, multi-prefix, server-time, userhost-in-names.
+
+The capabilities to automatically enable on servers can be set in option irc.server_default.capabilities (or by server in option irc.server.xxx.capabilities).
+
+Examples:
+   /cap
+   /cap req multi-prefix
+   /cap clear
+----
+
 [[command_irc_connect]]
 [command]*`connect`* connect to IRC server(s)::
 
-- 
cgit v1.2.3

