2
0
mirror of https://github.com/msantos/xmppipe synced 2024-11-02 09:40:12 +00:00
Commit Graph

208 Commits

Author SHA1 Message Date
Michael Santos
a45b734211 options: remove --chat-marker 2019-07-03 07:54:19 -04:00
Michael Santos
2a75c3373a Always display chat markers
Remove the option to explicitly enable/disable chat markers.
2019-07-02 08:13:39 -04:00
Michael Santos
900daefce4 makefile: remove conversion warnings 2019-07-01 08:33:06 -04:00
Michael Santos
997fc6a102 version: fix double free
Fix segfault from pasto when releasing stanza.
2019-06-30 09:06:19 -04:00
Michael Santos
5e488e059a xmpp_conn_set_flags() argument is a long
Correct the type for the flag argument from int to long. Note the
compiler will still complain because, although xmpp_conn_set_flags() is
declared to take a signed long, the constants are declared as unsigned
longs:

src/xmppipe.c: In function ‘main’:
src/xmppipe.c:205:13: warning: conversion to ‘long unsigned int’ from
‘long int’ may change the sign of the result [-Wsign-conversion]
       flags |= XMPP_CONN_FLAG_TRUST_TLS;
             ^
src/xmppipe.c:205:16: warning: conversion to ‘long int’ from ‘long
unsigned int’ may change the sign of the result [-Wsign-conversion]
       flags |= XMPP_CONN_FLAG_TRUST_TLS;
2019-06-29 11:07:59 -04:00
Michael Santos
8776afe0f5 Suppress conversion warnings 2019-06-28 10:04:53 -04:00
Michael Santos
134d3599ce stream_management: warning: cast strotonum() result 2019-06-27 10:10:29 -04:00
Michael Santos
c8774e591c strtonum: fix prototype warning 2019-06-26 10:14:26 -04:00
Michael Santos
20bfcbfa9f Makefile: add warnings 2019-06-25 09:42:16 -04:00
Michael Santos
396188ea87 xmppipe.h: fix prototype 2019-06-24 10:36:20 -04:00
Michael Santos
a21d4d5b29 xmppipe_send: remove shadowed variable 2019-06-23 08:04:29 -04:00
Michael Santos
42e0ce4a67 xmppipe: free child stanzas 2019-06-22 08:08:47 -04:00
Michael Santos
2f4e1459e9 version: free stanza on error 2019-06-21 10:15:41 -04:00
Michael Santos
c4de097c6b ping: free child stanza 2019-06-20 10:04:52 -04:00
Michael Santos
e4e78775be muc: free child stanzas 2019-06-19 09:40:08 -04:00
Michael Santos
287bb92aee vesion: free allocated stanzas 2019-06-18 10:10:16 -04:00
Michael Santos
1bb03b563e xmppipe_send_message: fix memory leak
Fix a memory leak caused by improper usage of
xmpp_stanza_new()/xmpp_stanza_release() by replacing usage with the
simpler xmpp_message_new()/xmpp_message_set_body() API available in
libstrophe 0.9.0, as advised by @pasis.

Fixes https://github.com/msantos/xmppipe/issues/3.
2019-06-17 10:19:36 -04:00
Michael Santos
8792a8a05c Mark fun as static 2019-05-30 12:10:58 -04:00
Michael Santos
e00a7fddd2 Consistently format using clang-format 2019-05-19 07:15:11 -04:00
Michael Santos
4b85976242 --keepalives -> --keepalive 2019-05-07 08:13:47 -04:00
Michael Santos
7793b0ac07 Fix pasto in -k/--keepalive 2019-05-06 10:13:30 -04:00
Michael Santos
8e2fd1c363 xmppipe_conn_fd: check fd is a socket 2019-04-30 08:02:30 -04:00
Michael Santos
b3991577aa reorg: event_loop: move to separate file 2019-04-29 10:14:27 -04:00
Michael Santos
a8cc5b730a Remove unused function declaration 2019-04-17 08:11:04 -04:00
Michael Santos
4081ab67cb reorg: muc_unlock 2019-04-05 09:47:57 -04:00
Michael Santos
5165f8a1a4 reorg: muc_subject 2019-04-04 10:26:23 -04:00
Michael Santos
9d6b58ba26 reorg: muc: join 2019-02-06 10:43:16 -05:00
Michael Santos
6731de9a13 reorg: ping 2019-02-05 12:23:28 -05:00
Michael Santos
17e40ad118 reorg: move stream_close with other stream ops 2019-02-04 10:22:24 -05:00
Michael Santos
0ba9e92eda reorg: stream management: ack 2019-02-03 09:21:15 -05:00
Michael Santos
ee0f59516b reorg: stream_close: move to util for now 2019-02-02 11:01:22 -05:00
Michael Santos
862ab6d313 reorg: stream management: request 2019-02-01 10:01:03 -05:00
Michael Santos
5cb7647e75 reorg: stream management: check if enabled 2019-01-31 10:35:54 -05:00
Michael Santos
c5f0f7b662 reorg: presence error handler 2019-01-30 09:56:25 -05:00
Michael Santos
0b22ad4302 reorg: presence handler 2019-01-29 09:56:45 -05:00
Michael Santos
8b1374a25a reorg: move next_state to util 2019-01-28 10:25:04 -05:00
Michael Santos
d150e63735 reorg: null handler 2019-01-27 08:38:21 -05:00
Michael Santos
b3468de16f reorg: ping handler 2019-01-26 08:47:55 -05:00
Michael Santos
9a98b8b9bf reorg: version handler 2019-01-25 10:28:00 -05:00
Michael Santos
895ad40ee2 reorg: xmppipe_send* 2019-01-23 10:37:20 -05:00
Michael Santos
d6dcc88bc6 tests: allow time for xmppipe login 2019-01-22 07:55:06 -05:00
Michael Santos
a365e18b59 reorg: message: organize by handler 2019-01-21 11:45:29 -05:00
Michael Santos
561fc9cbc3 xmppipe_roomname: clean up 2019-01-11 10:18:15 -05:00
Michael Santos
990874ef2e Add support for printing groupchat subject 2019-01-10 11:26:21 -05:00
Michael Santos
f5291fe321 makefile: fix static builds 2019-01-09 10:20:23 -05:00
Michael Santos
4e660c641a --keepalive-failures: check minimum using strtonum() 2019-01-05 10:04:48 -05:00
Michael Santos
b38d4b9e0c handle_message: use xmpp_free() 2019-01-03 10:06:19 -05:00
Michael Santos
026890d377 Add experimental support for chat markers
Support chat marker (XEP-0333) stanzas when the "--chat-marker" switch
is provided on the command line. A chat marker is prefixed by 'M':

~~~
M:groupchat:test@conference.example.com/msantos:me@example.com/162315501161646113068402:
~~~

The idea is to allow scripts to react based on whether a message has
been read, for example, escalating via other channels.
2019-01-02 10:29:32 -05:00
Michael Santos
501ada87ff chat: set default user to self 2018-12-31 08:05:51 -05:00
Michael Santos
1e59f50dc6 Enable PIE 2018-12-30 07:57:52 -05:00