Commit Graph

29 Commits

Author SHA1 Message Date
Daniel da Silva 2a6009a5ed Tweak contrib/docker; change to ForkDaemon for one process per user (increased security), fix permissions and add copy/paste run command to readme. 2018-03-11 19:13:46 +00:00
Artem Savkov cbba1b1cf9 Add a dockerfile
Add a dockerfile for bitlbee + bitlbee-discord contributed by
Daniel da Silva <mail@danieldasilva.org>
2018-03-11 09:12:44 +01:00
dx fdc2c83ca3 Friendship mode
Add friendship_mode option that would only show friends in the control channel while still showing non-friends in discord channels.

Fixes: #89
2017-09-24 19:44:20 +02:00
Alex Schroeder bdc7ad3f75 Fix typos in README 2017-08-25 11:29:47 +02:00
Artem Savkov 6ba03f75ec Add fetch_pinned option.
Add an option to fetch pinned messages on channel join. As a sideeffect
we now account for lingering http requests and cancel them on logout.
This might have caused an occasional segfault when we get logged out
while some http request was still pending.
2017-02-14 15:07:06 +01:00
Artem Savkov c6b5bc44a1 Make sure chan names are unique.
Bitlbee doesn't expect channels with the same name, so when you have
multiple channels with the same name only one of them can be joined.

This commit sets server_prefix_len to 3 by default and keeps adding '_'s
to the channel name until we get a unique name.

Fixes: #51
2017-02-07 10:45:59 +01:00
Artem Savkov 3338ea787b Debugging updates.
Switch from --enable-debug config option to BITLBEE_DEBUG env var to be
consistent with bitlbee. This allows us to remove some of the http printouts
as bitlbee will do it itself. Also adding account username to debug
output to distinguish traffic between accs.
2017-01-19 13:57:26 +01:00
Artem Savkov 580a463e93 Don't allow backlog fetches with limit < 1.
Before listchan merge we checked if max_backlog > 0 before fetching
backlog, unfortunately this check was lost causing discord to throw
errros at users when limit wasn't right.
Adding the check and a note about this to README.
2017-01-19 09:59:39 +01:00
Artem Savkov 73708b540a Add a debug option to configure.
Add --enable-debug option to configure that enables bitlbee-discord to
dump all traffic to stdout.
Update README with some info on debugging.
2017-01-18 15:43:46 +01:00
Artem Savkov 3703e0d318 README update.
Update readme with new requirements and some basic explaination on how
to add channels.
2017-01-13 16:40:35 +01:00
Shane Synan 857b519f72 Fix typos in plugin info, README
In discord.c plugin info, 'bitlbee-discrod' -> 'bitlbee-discord'.

In README, fix a few minor typos.
2016-05-28 03:00:32 -04:00
Artem Savkov 418a7c78c8 Add server_prefix_len option.
Add an option to control server prefixes for channels.
2016-05-26 17:36:57 +02:00
Artem Savkov d00ef51efa Switch to own websocket implementation.
This commit introduces own simple libwebsockets implementation removing
libwebsockets dependency. While this can introduce new bugs they should be
easier to hunt down. libwebsockets dependency proved to be very hard to
maintain due to library being in active development and not widely available.
2016-05-12 10:54:21 +02:00
Artem Savkov 56aea37e6b Add "never_offline" option.
Add an option to mark contacts as "away" instead of "offline". See issue #29 on
github for context.
2016-05-05 14:39:29 +02:00
Artem Savkov a1a4a530c3 Add incoming_me_translation option.
Add an option to control whether bitlbee-discord will do incoming /me message
translation or not.
2016-01-18 15:50:21 +01:00
Artem Savkov af442af9b8 Add support for outgoing #channel links.
Works the same way as @nick mentions, and is affected by mention_ignorecase
option.
2016-01-15 20:23:39 +01:00
Artem Savkov 9f9951c20a Add an option to ignore case when matching outgoing mentions.
Some of the nicks have casing that is a pain to type without
tabcompletion(can happen when user is offline), this commits adds a
"mention_ignorecase" option that can be enabled to ignore case when looking for
mentions.
2016-01-15 16:27:59 +01:00
Artem Savkov a4f09ac2e3 Add bitlbee-discord server to README.
Added a test server to README so that there is a place for people to
demonstrate/test bugs.
2016-01-14 12:55:25 +01:00
Artem Savkov 32c412e230 Add outgoing mentions support.
This commit adds automatic conversion of outgoing messages from irc-style
highlighting (e.g. "nick:") to discord's "<@id>" format.  New "mention_suffix"
option is added.
Outgoing mentions currently won't work with names containing spaces.

Fixes: issue #9.
2016-01-12 10:38:43 +01:00
Artem Savkov 9d9eb5df04 Switch to autotools.
Finally define specific versions in dependencies and switch to autotools
buildsystem. Hopefully this will give us better portability and won't induce
major headaches.
2016-01-04 22:13:42 +01:00
Artem Savkov de68da47ef Rename disable_acks option to send_acks.
Invert the logic and rename "disable_acks" option to "send_acks"
2016-01-01 22:48:15 +01:00
Artem Savkov 303c777e63 Add disable_acks per-account option.
Add an option that will allow users to disable message acks, might be useful
when using bitlbee as a backup solution.
2016-01-01 19:52:34 +01:00
Artem Savkov 1aa89dec6a Add backlog support.
Add support for backlog messages that arrived while you weren't on discord.
This commit also adds "max_backlog" option.
2015-12-28 11:52:21 +01:00
Artem Savkov 2dcc18dd4f Add support for url expansion.
Discord provides additional info about posted urls such as title and
description. Print this info into channel through a special handle that can be
adjusted via urlinfo_handle per-acc option.
2015-12-27 18:41:48 +01:00
Artem Savkov 8d4360c77f Add support for edited messages.
Display message updates for edited messages. This commit also introduces
"edit_prefix" per-acc option that enables the user to customise the string that
will be prefixed to the edited message.
2015-12-27 17:43:04 +01:00
Artem Savkov 9990487e54 Add license info 2015-12-16 11:25:16 +01:00
Artem Savkov 47d1f2e838 Add glib2 to dependencies list in README. 2015-12-12 12:55:26 +01:00
Artem Savkov 8433d12f05 Add voice_status_notify per-account option.
This option enables text notifications about voice channel status changes.
2015-12-12 12:43:44 +01:00
Artem Savkov 609546d864 Add README. 2015-12-04 14:54:52 +01:00