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.
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
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.
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.
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.
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.
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.
Finally define specific versions in dependencies and switch to autotools
buildsystem. Hopefully this will give us better portability and won't induce
major headaches.
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.
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.