Skip to content

Replace a Slack or Telegram gateway with real usernames in Weechat

Notifications You must be signed in to change notification settings

zv/weechat-gateway-replacer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Gateway Nick Converter

There are many IRC gateway programs that, rather than sending as if they were another user, simply prepend the name of the user that is using that gateway to the messages they are sending.

For example: slack-irc-bot might send a message to #weechat:

slack-irc-bot: <zv> How about them Yankees?

gateway_rename intercepts that message and converts it to:

^zv: How about them Yankees?

(gateway_rename prefixes the ^ (caret) symbol to each message to prevent message spoofing)

Adding a Renamer:

Which servers, channels, users and nickname templates are renamed can all be modified in plugins.var.guile.gateway_rename.gateways

Two gateways are matched by default, but are primarily intended to serve as a template for you to add others.

Each gateway renamer is placed inside of a set of parenthesis and contain four fields respectively:

  1. IRC server name (use the same name that weechat uses)
  2. Channel
  3. Gateway’s nick/user name
  4. The last field is a template for how to match the nickname of the ‘real user’ For example, if you wanted to convert the message gateway-bot: zv: Yes into zv: Yes You would set the last field to NICK: because each nick at the beginning of the message is suffixed with a :

About

Replace a Slack or Telegram gateway with real usernames in Weechat

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages