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)
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:
- IRC server name (use the same name that weechat uses)
- Channel
- Gateway’s nick/user name
- 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
intozv: Yes
You would set the last field toNICK:
because each nick at the beginning of the message is suffixed with a: