Skip to content
New issue

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

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

Already on GitHub? # to your account

RemoteNickFormat per gateway #337

Closed
heinrich5991 opened this issue Jan 12, 2018 · 4 comments
Closed

RemoteNickFormat per gateway #337

heinrich5991 opened this issue Jan 12, 2018 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@heinrich5991
Copy link
Contributor

It would be nice if it were possible to create a custom RemoteNickFormat per gateway.

My use case is that we have mainly have an IRC channel on Quakenet and a Discord server that should be linked together, but there's also a pretty empty IRC channel on Freenode. It would be nice if Quakenet ↔ Discord could be done without prefixing [{BRIDGE}], but when a message from or to Freenode is sent, [{BRIDGE}] is prefixed.

As far as I can tell, this would be possible using multiple one-way gateways if RemoteNickFormat were supported per gateway.

Would you accept a pull request implementing this?

@42wim
Copy link
Owner

42wim commented Jan 14, 2018

Hm yes, but it would have to work specific as well as general.

This would mean RemoteNickFormat could be configured on 4 levels

  • [bridge] config eg [irc.freenode]
  • [general] config
  • [[gateway]] config
  • [[gateway.inout.options]] config

So the overriding order would be from most specific to general:
[[gateway.inout.options]] > [bridge] > [[gateway]] > [general]

The extra config would look like this

[[gateway]]
RemoteNickFormat="[{BRIDGE}]" 
Enable=true

[[gateway.inout]]
account="irc.freenode"
channel="#blah"
[[gateway.inout.options]]
RemoteNickFormat="[{PROTOCOL}]"

...

Comments ?

@jadjay
Copy link

jadjay commented Jan 15, 2018

Couldn't it be :

[[gateway.inout]]
account="irc.freenode"
channel="#blah"
RemoteNickFormat="[{PROTOCOL}]"

@42wim 42wim added the enhancement New feature or request label Jan 20, 2018
@heinrich5991
Copy link
Contributor Author

I turned out just using [{BRIDGE}] for all gateways.

@42wim
Copy link
Owner

42wim commented Apr 8, 2019

This can probably be fixed using the recently introduced tengo scripting option.
See #793

@42wim 42wim closed this as completed Apr 8, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants