From ff5aeeb1e196c358858bc06a91f1c19a3e2a98f3 Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 21 May 2016 16:03:19 +0200 Subject: [PATCH] Add support for ignoring messages from specific users. --- README.md | 6 +++++- matterbridge.conf.sample | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 67e479a1..9074b8cf 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Requires mattermost 1.2.0+ There is also [matterbridge-plus] (https://github.com/42wim/matterbridge-plus) which uses the mattermost API and needs a dedicated user (bot). But requires no incoming/outgoing webhook setup. ## binaries -Binaries can be found [here] (https://github.com/42wim/matterbridge/releases/tag/v0.4) +Binaries can be found [here] (https://github.com/42wim/matterbridge/releases/tag/v0.4.1) ## building Go 1.6+ is required. Make sure you have [Go](https://golang.org/doc/install) properly installed, including setting up your [GOPATH] (https://golang.org/doc/code.html#GOPATH) @@ -56,6 +56,8 @@ SkipTLSVerify=true nick="matterbot" channel="#matterbridge" UseSlackCircumfix=false +#Ignore the messages from these nicks. They will not be sent to mattermost +IgnoreNicks="ircspammer1 ircspammer2" [mattermost] #url is your incoming webhook url (account settings - integrations - incoming webhooks) @@ -80,6 +82,8 @@ NicksPerRow=4 NickServNick="nickserv" #Password for nickserv NickServPassword="secret" +#Ignore the messages from these nicks. They will not be sent to irc +IgnoreNicks="mmbot spammer2" #multiple channel config #token you can find in your outgoing webhook diff --git a/matterbridge.conf.sample b/matterbridge.conf.sample index c1397d11..bc989fd0 100644 --- a/matterbridge.conf.sample +++ b/matterbridge.conf.sample @@ -6,6 +6,7 @@ SkipTLSVerify=true nick="matterbot" channel="#matterbridge" UseSlackCircumfix=false +IgnoreNicks="ircspammer1 ircspammer2" [mattermost] url="http://yourdomain/hooks/yourhookkey" @@ -21,6 +22,7 @@ NickFormatter=plain NicksPerRow=4 #NickServNick="nickserv" #NickServPassword="secret" +IgnoreNicks="mmbot spammer2" [general] GiphyAPIKey=dc6zaTOxFJmzC