Go to file
jubalh 0c12189d85 Several changes (#18)
Show help if no argument is provided

In case someone calls `xmppc` assume that he doesn't know how to use it.
Which means he might even not be aware of `-h`.
So let's print the help in case no argument is provided instead of
connecting, then discoverin that no mode is selected and disconnecting
again.

Fix segfault when not roster subcommand is provided

_roster_parse_command() segfaults since it assumes there is an argv[0].
Let's test the number of arguments.

Since we are already connected xmpp_connect_client() will wait for a
disconnect. So I introduce a teardown function that is called in both
the error case and the succesful case.

Now _roster_send_query() doesn't disconnect anymore.

Set to development by default

Only set to release when a new release is tagged.
Like this not every developer needs to change the code.
And it's git aka development anyways.

Don't mix german and english

Co-authored-by: Michael Vetter <jubalh@iodoru.org>
Reviewed-on: https://codeberg.org/Anoxinon_e.V./xmppc/pulls/18
2020-11-24 19:19:59 +01:00
doc xmppc Release 0.1.0 2020-05-16 08:45:05 +02:00
src Several changes (#18) 2020-11-24 19:19:59 +01:00
.gitignore Bugfixing and Accounts in Configfile 2020-04-21 17:56:28 +02:00
bootstrap.sh gitignore file / doc files 2020-04-19 13:15:20 +02:00
changelog xmppc Release 0.1.0 2020-05-16 08:45:05 +02:00
configure.ac Several changes (#18) 2020-11-24 19:19:59 +01:00
LICENSE Moved xmppc 0.0.3 to Anoxinon Repository 2020-04-19 12:47:14 +02:00
Makefile.am xmppc Release 0.1.0 2020-05-16 08:45:05 +02:00
README.md README - Chat 2020-08-15 07:39:41 +02:00

xmppc

xmppc - command line interface (CLI) XMPP Client.

xmppc is a XMPP command line interface client. It's written in C and is using the xmpp library libstrophe.

Dependencies

Build

The project is using GNU Automake.

aptitude install libstrophe-dev libc6-dev libglib2.0-dev libgpgme-dev
./bootstrap.sh
./configure
make

Config file

Config file: ~/.config/xmppc.conf.

The [default] will be used, when the user doesn't provider an account and doesn't provider a jid.

[default]
jid=user@domain.tld
pwd=YourSecret

[account1]
jid=account1@domain.tld
pwd=YourSecret

Usage

xmppc --jid user@domain.tld --pwd "password" --mode roster list
xmppc -j user@domain.tld -p "password" -m roster list
xmppc -a alice -m mam list bob@domain.tld
xmppc -m bookmark list
xmppc -h

More command and information see: Wiki

Documentation

Chat