Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RemoteNickFormat is ignored #4

Open
FunctionalHacker opened this issue May 31, 2020 · 3 comments
Open

RemoteNickFormat is ignored #4

FunctionalHacker opened this issue May 31, 2020 · 3 comments

Comments

@FunctionalHacker
Copy link

Hi! Thanks for this great tool, I got it working fairly easily. I will create a docker container for this when I have the time to make setting up easier.

I have one problem however: RemoteNickFormat is ignored, meaning messages sent to Facebook will just contain the message, no info on who wrote the message. Here are the relevant parts of my matterbridge.toml:

[api.myapi]
BindAddress="127.0.0.1:4242"
Buffer=1000
RemoteNickFormat="[{PROTOCOL}] <{NICK}> "

## This is the default FB gateway. All facebook measseages will be sent here
[[gateway]]
name="FBgateway"
enable=true
RemoteNickFormat="[{PROTOCOL}] <{NICK}> "
@jakubiakdev
Copy link

same issue

@theophanemayaud
Copy link

Same problem here, I guess it's also what #2 is also about ! Didd you find a way to implement it ?

@theophanemayaud
Copy link

theophanemayaud commented Sep 26, 2020

Ohhh well I figured out a simple way that seems to work ! In fbridge.py, just add jmsg["username"]+ on line 69 before jmsg["text"]
The 69th line, which is initially like this :

fbClient.send(Message(text=jmsg["text"]), thread_id=fbThread, thread_type=threadType)

Becomes

fbClient.send(Message(text=jmsg["username"]+jmsg["text"]), thread_id=fbThread, thread_type=threadType)

I made a PR for this : #6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants