summaryrefslogtreecommitdiffstats
path: root/gateway/handlers.go
Commit message (Collapse)AuthorAgeFilesLines
* Fix the behavior of ShowTopicChange and SyncTopic (#1086)ldruschk2020-04-181-1/+1
| | | | | | | | Currently, the "topic_change" events are ignored if both, ShowTopicChange and SyncTopic are set, and forwarded otherwise. This pull requests changes the behavior such that the events are only forwarded if one of those two config options is set to true and ignored otherwise.
* Implement User Avatar spoofing of XMPP users (#1090)Alexander2020-04-161-1/+1
| | | * Implement User Avatar spoofing of XMPP users
* Forward only user-typing messages if supported by protocol (#832)Duco van Amstel2019-05-301-0/+9
| | | | | | | | | | Fixes issue #814. This is a somewhat hacky way of achieving the required goal but it seems like this is the least problematic way of getting there. We might want to redesign some bridge information later such that we have a standardised way of specifying what is and what isn't supported by each chat protocol / bridge.
* Make all loggers derive from non-default instance (#728)Wim2019-02-231-20/+20
|
* Support rewriting messages from relaybots using ExtractNicks. Fixes #466 (#730)Wim2019-02-231-0/+39
| | | | | | | | | | some examples: this replaces a message like "Relaybot: <relayeduser> something interesting" to "relayeduser: something interesting" ExtractNicks=[ [ "Relaybot", "<(.*?)>\\s+" ] ] you can use multiple entries for multiplebots this also replaces a message like "otherbot: (relayeduser) something else" to "relayeduser: something else" ExtractNicks=[ [ "Relaybot", "<(.*?)>\\s+" ],[ "otherbot","\\((.*?)\\)\\s+" ] OPTIONAL (default empty) ExtractNicks=[ ["otherbot","<(.*?)>\\s+" ] ]
* Add initial support for getting ChannelMember info of all bridges (#678)Wim2019-01-181-0/+17
| | | | | | | | | | | | | | * Add initial support for getting ChannelMember info of all bridges. Adds an EventGetChannelMembers event, which gets send every x time to all bridges. Bridges should respond on this event with a Message containing ChannelMembers in the EventGetChannelMembers key in the Extra field. handleEventGetChannelMembers will handle this Message and sets the contained ChannelMembers to the Bridge struct. * Add ChannelMembers support to the slack bridge
* Refactor gateway (#648)Wim2018-12-121-0/+210
* Decrease complexity of handleMessage, handleReceive, handleFiles * Move handlers to handlers.go * Split ignoreMessage up in ignoreTextEmpty, ignoreNicks and IgnoreTexts * Add ignoreEvent * Add testcase for ignoreTextEmpty, ignoreNicks, ignoreTexts and ignoreEvent