Commit Graph

110 Commits (5847f7758ce0e9fbad53766efe495d7ba15adae4)

Author SHA1 Message Date
TheHolyRoger 5847f7758c
Only colour IRC nicks if there is one. (#1161) 4 years ago
Wim 393f9e998b
Update dependencies / vendor (#1146) 4 years ago
Wim ba0bfe70a8
Add StripMarkdown option (irc). (#1145)
Enable `StripMarkdown` to strip markdown for irc.
4 years ago
Wim f7ec9af9e8
Add extra space before colon in attachments (irc). Fixes #1089 (#1101) 4 years ago
Qais Patankar 8ae5917659
Be less lossy when throttling IRC messages (#1004)
Note that msg.Text and chucking it through a chan is OK: https://play.golang.org/p/MTfT3YSsgPX
4 years ago
Wim 2d277a15f5
Add scripting (tengo) support for every outgoing message (#806)
Adds a new key OutMessage under [tengo] table, which specifies the location of the script that
will be invoked on each message being sent to a bridge and can be used to modify the Username
and the Text of that message.

The script will have the following global variables:
read-only:
inAccount, inProtocol, inChannel, inGateway
outAccount, outProtocol, outChannel, outGateway

read-write:
msgText, msgUsername

The script is reloaded on every message, so you can modify the script on the fly.

The default script in https://github.com/42wim/matterbridge/tree/master/internal/tengo/outmessage.tengo
is compiled in and will be executed if no script is specified.
5 years ago
chotaire 6b47e29583 Add verbose IRC joins/parts (ident@host) (#805)
New configuration setting: VerboseJoinPart (default is false)
5 years ago
Wim 380c38674c Fix deadlock on reconnect (irc). Closes #757 5 years ago
Wim 8a875f292e Revert fix for #722. Closes #781
Revert "Fix typo"

This reverts commit dffd67eb31.

Revert "Handle quit message relay better on gateways with one channel on the irc bridge #722"

This reverts commit 240559581a.

Revert "Support quits from irc correctly. Fixes #722 (#724)"

This reverts commit d76a04bd0a.
5 years ago
Wim 60a85621ea Return when not connected and drop a message (irc). Fixes #786 5 years ago
Wim cdf33e5748 Use default nick if none specified (irc). Fixes #785 5 years ago
Wim d76a04bd0a
Support quits from irc correctly. Fixes #722 (#724) 5 years ago
Wim 3123695869
Upgrade to latest girc version (irc) (#718) 5 years ago
Wim 94812d8648 Handle servers without MOTD (irc). Closes #692 6 years ago
Wim 8548b69e6e Fix possible data race (irc). Closes #693 6 years ago
Duco van Amstel 8a7efce941 Move golangci-lint configuration to file (#635) 6 years ago
Wim 27f5a1a685 Fix multiple channel join regression. Closes #639 6 years ago
Wim 57fbd3c723
Refactor irc handlers. Fix linting (#611) 6 years ago
Wim 9f66f93641
Add option to send RAW commands after connection (irc). Fixes #490 (#604) 6 years ago
Wim 0795906533 Rework connection logic (irc)
If IRC connection fails on first connect, bail out.
Wait until after nickserv auth until joining channels (also after reconnects)
Don't do a separate irc timeout, some connections take a while #503
6 years ago
Wim a2b45bc799 Fix Nickserv logic (irc) #602 6 years ago
Duco van Amstel ce21ba1545 Fix golint linter issues and enable it in CI (#593) 6 years ago
Duco van Amstel 85564a35fd Fix IRC line splitting. Closes #584 (#587) 6 years ago
Wim 399789811e Make gocritic linter happy 6 years ago
Wim 1794922263 Make unparam linter happy 6 years ago
David Hill 0e2522279e Clean up various stuff (#508)
* various cleanups
6 years ago
Wim d7c3570ba3 Check nickname on kick (irc). Closes #488 6 years ago
Wim 351b423e15 Add a bit more debugging (irc). #482 6 years ago
John 2d2d185200 Stop numbers being stripped after non-color control codes (irc) (#465)
Currently numbers are stripped not just after the color control code (\x03) but also after other formatting such as bold (\x02) and italic (\x1D), which is both unnecessary and leads to missing text from irc. This fixes that by only stripping numbers after the color control code.
6 years ago
Liam Stanley 51327a4056 Reconnect on quit. (irc) See #431 (#445)
* potential fixes for #431
* go: fix formatting/gofmt/goreturns
6 years ago
Yuval Langer 6576409d60 Prevent white or black color codes (irc) (#434) 6 years ago
Kazuhiro NISHIYAMA f1db166ac4 Fix format string bug (irc) (#428) 6 years ago
Yuval Langer 887c2bc56d End IRC username formatting with a total formatting reset (irc) (#425)
* Add zero padding to the color code

* Change color ending into total formatting reset
6 years ago
Yuval Langer f0738a93c3 [WIP] Colorize username sent to IRC using its crc32 IEEE checksum (#423)
* Colorize username sent to IRC using its crc32 IEEE checksum

* Add `ColorNicks` configuration variable

* Add `ColorNicks` setting
6 years ago
Wim 75381c2c6e Add support for CJK to/from utf-8 (irc). #400 6 years ago
Wim 72ce7f06e9 Handle file comment better 6 years ago
Wim e5989adf92 Add support for NoSendJoinPart. Closes #382 6 years ago
Wim 2133e0d1be Use default values part 2 (irc) 6 years ago
Wim a6f37f1d61 Use default values (irc) 6 years ago
Wim 9de9151826 Fix panic on sending messages between reconnects (irc). Closes #385 6 years ago
Wim f2f1d874e1 Use viper (github.com/spf13/viper) for configuration 6 years ago
Wim 594d2155e3 Improve debug messages 6 years ago
Wim 2bac867382 Refactor using factory 6 years ago
Wim 064b6a915f Small fixes to irc 6 years ago
Wim 7b21c1c2f4 Set event channels to lowercase (irc). Closes #375 6 years ago
Wim f8714d81f5 Add DebugLevel option (irc) 6 years ago
Wim 8622656005 Add more debug for events (irc) 6 years ago
Wim d1227b5fc9 Use prefixed-formatter for better logging 6 years ago
Wim 6ea368c383 Move Sirupsen => sirupsen 6 years ago
tsudoko 1d33e60e36 Truncate messages sent to IRC based on byte count (#368)
* Truncate messages sent to IRC based on byte count

* Avoid unnecessary string allocations
6 years ago