commands.rst 20.1 KB
Newer Older
mathieui's avatar
mathieui committed
1 2 3
Commands
========

mathieui's avatar
mathieui committed
4
Commands start with the ``/`` character and can take a list of any number
mathieui's avatar
mathieui committed
5
of arguments, separated by spaces. If an argument should contain a space,
mathieui's avatar
mathieui committed
6
you can use the ``"`` character to surround this argument.
mathieui's avatar
mathieui committed
7 8 9

The commands described in this page are shown like this:

mathieui's avatar
mathieui committed
10
``/command <mandatory argument> [optional argument]``
mathieui's avatar
mathieui committed
11

mathieui's avatar
mathieui committed
12
You can get the same help as below from inside poezio with the :term:`/help` command.
mathieui's avatar
mathieui committed
13 14 15 16

.. note:: Use command parameters like this:

    - Do not use quotes if they are unnecessary (words without special chars or spaces)
Link Mauve's avatar
Link Mauve committed
17
    - If the command takes several arguments, you need to put quotes around arguments containing special chars such as backslashes or quotes
mathieui's avatar
mathieui committed
18 19
    - If the command always takes only one argument, then do not use quotes even for words containing special chars

mathieui's avatar
mathieui committed
20 21
.. _global-commands:

mathieui's avatar
mathieui committed
22 23 24 25 26
Global commands
~~~~~~~~~~~~~~~

These commands work in *any* tab.

27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
.. glossary::
    :sorted:

    /help
        **Usage:** ``/help [command]``

        If called without an argument, this command will list the
        available commands. If it has a valid command as an argument, this command
        will show the usage and the help for the given command.

    /join
        **Usage:** ``/join [room_name][@server][/nick] [password]``

        Join the specified room. You
        can specify a nickname after a slash (/). If no nickname is specified, you
        will use the default_nick in the configuration file. You can omit the room
        name: you will then join the room you're looking at (useful if you were
        kicked). You can also provide a room_name without specifying a server, the
        server of the room you're currently in will be used. You can also provide a
        password to join the room.

        *Examples:*

        - ``/join room@server.tld``
        - ``/join room@server.tld/John``
        - ``/join room2``
        - ``/join /me_again``
        - ``/join``
        - ``/join room@server.tld/my_nick password``
        - ``/join / password``

mathieui's avatar
mathieui committed
58 59 60 61 62 63 64 65
    /destroy_room
        **Usage:** ``/destroy_room [room JID]``

        Try to destroy the room given as a parameter, or the current room
        is not parameter is given and the current tab is a chatroom.

        You need to be the owner of a room or a server admin to destroy it.

66 67 68 69
    /exit
    /quit
        Just disconnect from the server and exit poezio.

mathieui's avatar
mathieui committed
70
    /load
71
        **Usage:** ``/load <plugin name> [<other plugin> …]``
mathieui's avatar
mathieui committed
72

73
        Load or reload one or several plugins.
mathieui's avatar
mathieui committed
74 75

    /unload
76
        **Usage:** ``/unload <plugin name> [<other plugin> …]``
mathieui's avatar
mathieui committed
77

78
        Unload one or several plugins.
mathieui's avatar
mathieui committed
79 80 81 82

    /plugins
        List the loaded plugins.

83 84 85 86 87 88 89 90
    /next
        Go to the next room.

    /prev
        Go to the previous room.

    /win
    /w
louiz’'s avatar
louiz’ committed
91
        **Usage:** ``/win <number or string>``
92

louiz’'s avatar
louiz’ committed
93 94
        Go to the matching tab.  If the argument is a number, it goes to the tab with that number.
        Otherwise, it goes to the next tab whose name contains the given string.
95 96 97 98 99

    /status
        **Usage:** ``/status <availability> [status message]``

        Set your availability and
Link Mauve's avatar
Link Mauve committed
100
        (optionally) your status message. The <availability> argument is one of
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132
        "available, chat, away, afk, dnd, busy, xa" and the optional [status] argument
        will be your status message.'

    /bookmark
        **Usage:** ``/bookmark [roomname][/nick] [autojoin] [password]``

        Bookmark the specified
        room. This command uses  almost the same syntax as /join. Type ``/help join`` for
        syntax examples. Note that when typing /bookmark on its own, the room will be
        bookmarked with the nickname you're currently using in this room (instead of
        default_nick). You can specify an optional *autojoin* and *password* if you
        call it with the full line (/bookmark alone will put the room in autojoin
        without password). The bookmarks stored with this command are stored on your
        xmpp server.

    /bookmark_local
        **Usage:** ``/bookmark_local [roomname][/nick]``

        Bookmark the  specified room (you will
        then auto-join it on each poezio start). This commands uses almost the same
        syntax as /join. Type /help join for syntax examples. Note that when typing
        /bookmark on its own, the room will be bookmarked with the nickname you're
        currently using in this room (instead of default_nick). The bookmarks stored
        with this command will be stored locally. They have priority over the ones
        stored online.

    /remove_bookmark
        **Usage:** ``/remove_bookmark [room_jid]``

        Remove the bookmark on *room_jid* or the one on the current tab, if any.

    /bookmarks
mathieui's avatar
mathieui committed
133 134 135
      **Usage:** ``/bookmarks``

      Open a :ref:`bookmarks tab` in order to edit the current boookmarks.
136 137 138 139 140 141

    /set
        **Usage:** ``/set [plugin|][section] <option> <value>``

        Set the value to the option in
        your configuration file. You can, for example, change your default nickname
142
        by doing "/set default_nick toto" or your password with "/set password
143 144 145 146 147 148 149 150 151
        blabla".  Doing so will write in the main config file, and in the main
        section ([Poezio]). But you can also write to another section, with ``/set
        bindings M-i ^i``, to a plugin configuration with ``/set mpd_client| host
        main`` (notice the **|**, it is mandatory to write in a plugin), or even to
        another section in a plugin configuration ``/set plugin|other_section option
        value``.  **toggle** can be used as a special value for a boolean option. It
        just set the option to true if it’s currently false, and to false if it’s
        currently true.

mathieui's avatar
mathieui committed
152 153 154 155
    /set_default
        **Usage:** ``/set_default [section] <option>``

        Set the value of an option back to the default. For example,
156
        ``/set_default password`` will reset the ``password`` option.
mathieui's avatar
mathieui committed
157

mathieui's avatar
mathieui committed
158 159 160 161 162
    /toggle
        **Usage:** ``/toggle <option>``

        Toggle an option, shortcut for :term:`/set` <option> toggle.

163 164 165
    /move_tab
        **Usage:** ``/move_tab <source> <destination>``

166 167 168 169
        Move tab <source> to <destination>. If the :term:`create_gaps` option
        is true, then it will leave a gap at the <source> position, leading
        to usual behaviour. If create_gaps is not enabled, then the tabs will
        number from 0 to your actual tab number, without gaps (which means
170 171
        their number will change if you close a tab on the left of the list).

172 173
        A value of ``.`` for a parameter means the current tab.

174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191
    /theme
        **Usage:** ``/theme [theme_name]``

        Reload the theme defined in the config file. If
        *theme_name* is given, this command will act like :samp:`/set theme {theme_name}` then
        /theme.

    /presence
        **Usage:** ``/presence <jid> [type] [status]``

        Send a directed presence to *jid* using
        *type* and *status* if provided.

    /rawxml
        **Usage:** ``/rawxml <stanza>``

        Send a custom XML stanza.

mathieui's avatar
mathieui committed
192 193 194
    /xml_tab
        Open an XML tab.

195 196 197
    /list
        **Usage:** ``/list [server.tld]``

mathieui's avatar
mathieui committed
198
        Get the list of public chatrooms in the specified server (open a :ref:`listtab`)
199 200 201 202

    /message
        **Usage:** ``/message <jid> [optional message]``

mathieui's avatar
mathieui committed
203 204
        Open a conversation with the specified JID (event if it is not in our
        contact list), and send a message to them, if specified.
205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220

    /version
        **Usage:** ``/version <jid>``

        Get the software version of the given JID (usually its XMPP
        client and Operating System).

    /invite
        **Usage:** ``/invite <jid> <room> [reason]``

        Invite *jid* to *room* with *reason* (if
        provided).

    /invitations
        Show the pending invitations.

221 222 223 224 225
   /impromptu
        **Usage:** ``/impromptu <jid> [jid ..]``

        Invite specified JIDs into a newly created room.

226 227
       .. versionadded:: 0.13

228
    /activity
229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250
        **Usage:** ``/activity [<general> [specific] [comment]]``

        Send your current activity to your contacts (use the completion to cycle
        through all the general and specific possible activities).

        Nothing means "stop broadcasting an activity".

    /mood
        **Usage:** ``/mood [<mood> [comment]]``
        Send your current mood to your contacts (use the completion to cycle
        through all the possible moods).

        Nothing means "stop broadcasting a mood".

    /gaming
        **Usage:** ``/gaming [<game name> [server address]]``

        Send your current gaming activity to your contacts.

        Nothing means "stop broadcasting a gaming activity".

    /last_activity
251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277
        **Usage:** ``/activity <jid>``

        Show the last activity of a contact or a server (its
        uptime, in that case).

    /server_cycle
        **Usage:** ``/server_cycle [server.tld] [message]``

        Disconnect and reconnect in all the
        rooms of server.tld.

    /bind
        **Usage:** ``/bind <key> <eq>``

        Bind a key to another key or to a "command". For example,
        ``/bind ^H KEY_UP`` makes Control + h behave the same way as the Up key. See the
        *key bindings documentation page* for more details.

    /runkey
        **Usage:** ``/runkey <key>``

        Execute the action defined for *key*. For example,
        ``/runkey KEY_PPAGE`` will scroll up, or ``/runkey ^N`` will go to the next tab.

    /self
        Reminds you of who you are and what your status is.

Eijebong's avatar
Eijebong committed
278 279
    /reload
        Reload the config. You can achieve the same by sending SIGUSR1 to poezio.
280 281 282 283

    /close
        Close the tab.

mathieui's avatar
mathieui committed
284 285
        .. note:: The /close command will work everywhere, except in the
                    Contact list tab, which can’t be closed.
286

mathieui's avatar
mathieui committed
287

mathieui's avatar
mathieui committed
288 289
.. _chattab-commands:

mathieui's avatar
mathieui committed
290 291 292 293 294 295
Chat tab commands
~~~~~~~~~~~~~~~~~

These commands will work in any conversation tab (MultiUserChat, Private, or
 Conversation tabs).

296 297 298
.. glossary::
    :sorted:

mathieui's avatar
mathieui committed
299 300 301 302 303
    /correct
        **Usage:** ``/correct <corrected message>``

        Replace the content of the last sent message with *corrected message*.

304 305 306 307 308 309 310 311 312
    /say
        **Usage:** ``/say <message>``

        Just send the message (only useful it you want your message
        to begin with a **/**). Note that you can also send message starting with a **/**
        by starting it with **//**.

    /xhtml
        **Usage:** ``/xhtml <custom xhtml>``
mathieui's avatar
mathieui committed
313

314
        Send a custom xhtml message to the current tab.
mathieui's avatar
mathieui committed
315

316 317
    /clear
        Clear the current buffer.
mathieui's avatar
mathieui committed
318

mathieui's avatar
mathieui committed
319 320
.. _muctab-commands:

mathieui's avatar
mathieui committed
321 322 323
MultiUserChat tab commands
~~~~~~~~~~~~~~~~~~~~~~~~~~

324 325 326
.. glossary::
    :sorted:

327 328 329 330 331 332 333 334 335 336 337 338 339
    /affiliation
       **Usage:** ``/affiliation <nick> <affiliation>``

       Sets the affiliation of the participant designated by **nick** to the
       given **affiliation** (can be one of owner, admin, member, outcast
       and none).

    /role
       **Usage:** ``/affiliation <nick> <role>``

       Sets the role of the participant designated by **nick** to the given
       **role** (can be one of moderator, participant, visitor and none).

louiz’'s avatar
louiz’ committed
340 341 342 343 344
    /color
        **Usage:** ``/color <nick> <color>``

        Assign a color to the given nick. The nick and all its alias (nicks
        are considered identical if they only differ by the presence of one
louiz’'s avatar
louiz’ committed
345
        ore more **_** character at the beginning or the end. For example
louiz’'s avatar
louiz’ committed
346 347 348 349 350 351 352
        _Foo and Foo___ are considered aliases of the nick Foo) will then
        always have the specified color, in all MultiUserChat tabs.  This is
        true whatever the value of **deterministic_nick_colors** is.

        Use the completion to get a list of all the available color values.
        Use the special color **unset** to remove the attributed color on
        this nick.
Eijebong's avatar
Eijebong committed
353
        You can also use **random** to attribute a random color.
louiz’'s avatar
louiz’ committed
354

355
    /clear [Chatroom version]
356 357
        **Usage:** ``/clear``

mathieui's avatar
mathieui committed
358
        Clear the messages buffer.
359

360 361 362 363 364
    /ignore
        **Usage:** ``/ignore <nickname>``

        Ignore a specified nickname.

365
    /invite [Chatroom version]
366 367 368 369 370 371
        **Usage:** ``/invite <jid> [reason]``

        Invite *jid* to this room with *reason* (if
        provided).


372 373 374 375 376 377 378
    /unignore
        **Usage:** ``/unignore <nickname>``

        Remove the specified nickname from the ignore list.

    /kick
        **Usage:** ``/kick <nick> [reason]``
mathieui's avatar
mathieui committed
379

380 381
        Kick the user with the specified nickname. You can
        also give an optional reason.
mathieui's avatar
mathieui committed
382

383
    /topic
384
        **Usage:** ``/topic [subject]``
mathieui's avatar
mathieui committed
385

386 387 388 389
        Change the subject of the room.

        Using the auto-completion of this command writes the current topic
        in the input, to help the user make a small change to the topic
Link Mauve's avatar
Link Mauve committed
390
        without having to rewrite it all by hand.
391 392 393

        If no subject is specified as an argument, the current topic is
        displayed, unchanged.
mathieui's avatar
mathieui committed
394

395 396
    /query
        **Usage:** ``/query <nick> [message]``
mathieui's avatar
mathieui committed
397

mathieui's avatar
mathieui committed
398
        Open a :ref:`privatetab` with <nick>. This nick
399 400
        has to be present in the room you’re currently in. If you specified a message
        after the nickname, it will be sent to this user.
mathieui's avatar
mathieui committed
401

402 403
    /part
        **Usage:** ``/part [message]``
mathieui's avatar
mathieui committed
404

405 406
        Disconnect you from a room. You can specify an optional
        message.
mathieui's avatar
mathieui committed
407

408 409
    /nick
        **Usage:** ``/nick <nickname>``
mathieui's avatar
mathieui committed
410

411
        Change your nickname in the current room.
mathieui's avatar
mathieui committed
412

413 414
    /recolor
        **Usage:** ``/recolor [random]``
mathieui's avatar
mathieui committed
415

416 417 418 419
        Re-assign a color to all the participants in the current
        room, based on the last time they talked. Use this if the participants
        currently talking have too many identical colors. If a random argument is
        given, the participants will be shuffled before they are assigned a color.
mathieui's avatar
mathieui committed
420

421 422
    /cycle
        **Usage:** ``/cycle [message]``
mathieui's avatar
mathieui committed
423

Link Mauve's avatar
Link Mauve committed
424
        Leave the current room an rejoint it immediately. You can
425 426 427 428 429 430
        specify an optional quit message.

    /info
        **Usage:** ``/info <nickname>``

        Display some information about the user in the room:
Kim Alvefur's avatar
Kim Alvefur committed
431
        their role, affiliation, status, and status message.
432

mathieui's avatar
mathieui committed
433
    /version
434 435 436 437 438 439
        **Usage:** ``/version <nickname or jid>``

        Get the software version of the given nick in
        room or the given jid (usually its XMPP client and Operating System).

    /configure
mathieui's avatar
mathieui committed
440
        Configure the current room through a form (Open a :ref:`dataformtab`).
441 442 443 444

    /names
        Get the list of the users in the room, their number, and the list
        of the people assuming different roles.
mathieui's avatar
mathieui committed
445

mathieui's avatar
mathieui committed
446 447
.. _privatetab-commands:

mathieui's avatar
mathieui committed
448 449 450
Private tab commands
~~~~~~~~~~~~~~~~~~~~

451 452 453
.. glossary::
    :sorted:

mathieui's avatar
mathieui committed
454
    /info
455
        Display some info about this user in the MultiUserChat.
mathieui's avatar
mathieui committed
456

mathieui's avatar
mathieui committed
457
    /unquery
458
        Close the tab.
mathieui's avatar
mathieui committed
459

mathieui's avatar
mathieui committed
460
    /version
461 462
        Get the software version of the current interlocutor (usually its
        XMPP client and Operating System).
mathieui's avatar
mathieui committed
463

mathieui's avatar
mathieui committed
464 465
.. _conversationtab-commands:

mathieui's avatar
mathieui committed
466 467 468
Normal Conversation tab commands
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

469 470 471
.. glossary::
    :sorted:

mathieui's avatar
mathieui committed
472
    /info
473
        Display the status of this contact.
mathieui's avatar
mathieui committed
474

mathieui's avatar
mathieui committed
475
    /unquery
476
        Close the tab.
mathieui's avatar
mathieui committed
477

mathieui's avatar
mathieui committed
478
    /version
479 480
        Get the software version of the current interlocutor (usually its
        XMPP client and Operating System).
mathieui's avatar
mathieui committed
481

482 483 484 485 486 487
   /invite
        **Usage:** ``/invite <jid> [jid ..]``

        Invite specified JIDs, with this contact, into a newly
        created room.

488 489
       .. versionadded:: 0.13

mathieui's avatar
mathieui committed
490 491
.. _rostertab-commands:

mathieui's avatar
mathieui committed
492 493
Contact list tab commands
~~~~~~~~~~~~~~~~~~~~~~~~~
494 495 496 497 498 499 500
.. glossary::
    :sorted:

    /accept
        **Usage:** ``/accept [jid]``

        Authorize the provided JID (or the selected contact in the
mathieui's avatar
mathieui committed
501
        contact list) to see your presence.
mathieui's avatar
mathieui committed
502

503 504
    /deny
        **Usage:** ``/deny [jid]``
mathieui's avatar
mathieui committed
505

506
        Prevent the provided JID (or the selected contact in the
mathieui's avatar
mathieui committed
507
        contact list) from seeing your presence.
mathieui's avatar
mathieui committed
508

509 510
    /add
        **Usage:** ``/add <jid>``
mathieui's avatar
mathieui committed
511

mathieui's avatar
mathieui committed
512 513 514
        Add the specified JID to your contact list and authorize them to see
        your presence. If they accepts you, the subscription will be mutual
        (and if they don’t, you can still /remove them).
mathieui's avatar
mathieui committed
515

516 517
    /name
        **Usage:** ``/name <jid> <name>``
mathieui's avatar
mathieui committed
518

mathieui's avatar
mathieui committed
519
        Set the given JID’s name in your contact list.
mathieui's avatar
mathieui committed
520

521 522 523 524 525
    /password
        **Usage:** ``/password <password>``

        Change your password.

526
    /groupadd
mathieui's avatar
mathieui committed
527
        **Usage:** ``/groupadd (<jid> <group>|<group>)``
mathieui's avatar
mathieui committed
528

529
        Add the given JID to the given group (if the group
mathieui's avatar
mathieui committed
530
        does not exist, it will be created). If no jid is provided,
mathieui's avatar
mathieui committed
531
        the currently selected item on the contact list (resource or JID)
mathieui's avatar
mathieui committed
532
        will be used.
mathieui's avatar
mathieui committed
533

534 535
    /groupmove
        **Usage:** ``/groupmove <jid> <old_group> <new_group>``
mathieui's avatar
mathieui committed
536

537 538 539
        Move the given JID from one group
        to another (the JID has to be in the first group, and the new group  may not
        exist).
mathieui's avatar
mathieui committed
540

541 542
    /groupremove
        **Usage:** ``/groupremove <jid> <group>``
mathieui's avatar
mathieui committed
543

544 545
        Remove the given JID from the given group (if
        the group is empty after that, it will get deleted).
mathieui's avatar
mathieui committed
546

547 548
    /remove
        **Usage:** ``/remove [jid]``
mathieui's avatar
mathieui committed
549

mathieui's avatar
mathieui committed
550
        Remove the specified JID from your contact list. This will
551
        unsubscribe you from its presence, cancel its subscription to yours, and
mathieui's avatar
mathieui committed
552
        remove the item from your contact list.
553 554 555 556 557 558

    /reconnect

        Disconnect from the remote server (if connected) and then
        connect to it again.

mathieui's avatar
mathieui committed
559 560
.. note:: The following commands only exist if your server announces it
          supports them.
561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579

.. glossary::
    :sorted:

    /block
        **Usage:** ``/block [jid]``

        Block the following JID using simple blocking. You will not
        receive any of his messages and won’t be able to send some to him either.

    /unblock
        **Usage:** ``/unblock [jid]``

        Unblock a previously blocked JID using simple blocking. You
        will be able to send and receive messages from him again.

    /list_blocks
        List the blocked JIDs.

mathieui's avatar
mathieui committed
580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614
    /certs

        List the remotely stored X.509 certificated allowed to connect
        to your accounts.

    /cert_add
        **Usage:** ``/cert_add <name> <certificate file> [management]``

        Add a client X.509 certificate to the list of the certificates
        which grand access to your account. It must have an unique name
        the file must be in PEM format. ``[management]`` is true by
        default and specifies if the clients connecting with this
        particular certificate will be able to manage the list of
        authorized certificates.

    /cert_disable
        **Usage:** ``/cert_disable <name>``

        Remove a certificate from the authorized list. Clients currently
        connected with the certificate identified by ``<name>`` will
        however **not** be disconnected.

    /cert_revoke
        **Usage:** ``/cert_revoke <name>``

        Remove a certificate from the authorized list. Clients currently
        connected with the certificate identified by ``<name>`` **will**
        be disconnected.

    /cert_fetch
        **Usage:** ``/cert_fetch <name> <path>``

        Download the public key of the authorized certificate identified by
        ``name`` from the XMPP server, and store it in ``<path>``.

615
.. note:: The following commands do not comply with any XEP or whatever, but they
mathieui's avatar
mathieui committed
616 617
 can still prove useful when you are migrating to an other JID.

618 619 620 621 622
.. glossary::
    :sorted:

    /export
        **Usage:** ``/export [/path/to/file]``
mathieui's avatar
mathieui committed
623

mathieui's avatar
mathieui committed
624 625
        Export your contacts into :file:`/path/to/file` if
        specified, or :file:`$HOME/poezio_contacts` if not.
626 627 628 629

    /import
        **Usage:** ``/import [/path/to/file]``

mathieui's avatar
mathieui committed
630 631 632 633
        Import your contacts from :file:`/path/to/file` if
        specified, or :file:`$HOME/poezio_contacts` if not.

.. _xmltab-commands:
mathieui's avatar
mathieui committed
634 635 636 637

XML tab commands
~~~~~~~~~~~~~~~~

638
.. glossary::
639
    :sorted:
640 641 642 643

    /clear [XML tab version]
        Clear the current buffer.

644 645 646 647 648
    /dump
        **Usage:** ``/dump <filename>``

        Write the content of the XML buffer into a file.

649
    /filter_reset
mathieui's avatar
mathieui committed
650
        Reset the stanza filters.
651 652 653 654 655 656 657 658 659 660 661 662 663 664 665

    /filter_id
        **Usage:** ``/filter_id <id>``

        Filter by stanza id attribute.

    /filter_xpath
        **Usage:** ``/filter_xpath <xpath>``

        Filter with an XPath selector.

    /filter_xmlmask
        **Usage:** ``/filter_xmlmask <xml mask>``

        Filter using an XML mask
mathieui's avatar
mathieui committed
666 667 668 669 670 671 672 673 674 675 676 677 678 679 680

    /filter_jid
        **Usage:** ``/filter_jid <jid>``

        Filter by JID, both ``to`` and ``from``.

    /filter_to
        **Usage:** ``/filter_to <jid>``

        Filter by JID for the ``to`` attribute.

    /filter_from
        **Usage:** ``/filter_from <jid>``

        Filter by JID for ``from`` attribute.