diff options
author | dequis <dx@dxzone.com.ar> | 2016-09-20 23:48:14 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2016-09-20 23:48:14 -0300 |
commit | 028ca92f3a36fed8ebb0a6507e64a50938049e53 (patch) | |
tree | 6672fcb075a9bbf264c6cb1e1e78372c62bfb5c6 | |
parent | 7e4f439ccaf898edee560fd7351b7dabdc14ae3a (diff) |
doc: some 'chat list' related help improvements
-rw-r--r-- | doc/user-guide/commands.xml | 19 | ||||
-rw-r--r-- | doc/user-guide/genhelp.py | 3 |
2 files changed, 18 insertions, 4 deletions
diff --git a/doc/user-guide/commands.xml b/doc/user-guide/commands.xml index fa36d6b7..ef1023cd 100644 --- a/doc/user-guide/commands.xml +++ b/doc/user-guide/commands.xml @@ -257,7 +257,7 @@ <description> <para> - Available actions: add, with. See <emphasis>help chat <action></emphasis> for more information. + Available actions: add, with, list. See <emphasis>help chat <action></emphasis> for more information. </para> </description> @@ -271,7 +271,7 @@ </para> <para> - After adding a room to your list, you can simply use the IRC /join command to enter the room. Also, you can tell BitlBee to automatically join the room when you log in. (See <emphasis>chat set</emphasis>) + After adding a room to your list, you can simply use the IRC /join command to enter the room. Also, you can tell BitlBee to automatically join the room when you log in. (<emphasis>channel <channel> set auto_join true</emphasis>) </para> <para> @@ -286,9 +286,18 @@ <description> <para> - List existing chatrooms provided by an account. BitlBee needs this to propogate an internal list of chats. The existing chat can then be added with <emphasis>chat add</emphasis>. + List existing chatrooms provided by an account. BitlBee needs this to propogate an internal list of chats. The existing chat can then be added with <emphasis>chat add</emphasis>, using the number in the index column after a "!" as a shortcut. </para> </description> + + <ircexample> + <ircline nick="dx">chat list facebook</ircline> + <ircline pre="1" nick="root">Index Title Topic</ircline> + <ircline pre="1" nick="root"> 1 869891016470949 cool kids club</ircline> + <ircline pre="1" nick="root"> 2 457892181062459 uncool kids club</ircline> + <ircline nick="root">2 facebook chatrooms</ircline> + <ircline nick="dx">chat add facebook !1 #cool-kids-club</ircline> + </ircexample> </bitlbee-command> <bitlbee-command name="with"> @@ -298,6 +307,10 @@ <para> While most <emphasis>chat</emphasis> subcommands are about named chatrooms, this command can be used to open an unnamed groupchat with one or more persons. This command is what <emphasis>/join #nickname</emphasis> used to do in older BitlBee versions. </para> + + <para> + Another way to do this is to join to a new, empty channel with <emphasis>/join #newchannel</emphasis> and invite the first person with <emphasis>/invite nickname</emphasis> + </para> </description> </bitlbee-command> </bitlbee-command> diff --git a/doc/user-guide/genhelp.py b/doc/user-guide/genhelp.py index ec619344..e9a3b2bf 100644 --- a/doc/user-guide/genhelp.py +++ b/doc/user-guide/genhelp.py @@ -64,7 +64,8 @@ def fix_tree(tag, debug=False, lvl=''): print("%s</%s>%r" % (lvl, tag.tag, [tag.tail, normalize(tag.tail)])) # Actually normalize whitespace - tag.text = normalize(tag.text) + if 'pre' not in tag.attrib: + tag.text = normalize(tag.text) tag.tail = normalize(tag.tail) |