You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for ignoring IRC hosts from Discord (#82)
This should add a configuration option that allows for using nearly IRC style hostmasks to "ban" matching users in IRC from sending messages towards Discord. This would be useful for ignoring bots in channels.
Tested, works, documentation and configuration example added.
Co-authored-by: Qais Patankar <[email protected]>
|`avatar_url`| No |`https://ui-avatars.com/api/?name=${USERNAME}`| Yes | The URL for the API to use to tell Discord what Avatar to use for a User when the user's avatar cannot be found at Discord already. |
72
-
|`discord_token`| Yes || No |[The bot user token](https://github.com/reactiflux/discord-irc/wiki/Creating-a-discord-bot-&-getting-a-token)|
73
-
|`irc_server`| Yes || No | IRC server address |
74
-
|`channel_mappings`| No || No | a dict with irc channel as key (prefixed with `#`) and Discord channel ID as value |
75
-
|`guild_id`| No || No | the Discord guild (server) id |
76
-
|`irc_pass`| Yes || Yes | password for connecting to the IRC server |
77
-
|`suffix`| No |`~d`| Yes | appended to each Discord user's nickname when they are connected to IRC. If set to `_d2`, if the name will be `bob_d2`|
78
-
|`separator`| No |`_`| Yes | used in fallback situations. If set to `-`, the **fallback name** will be like `bob-7247_d2` (where `7247` is the discord user's discriminator, and `_d2` is the suffix) |
79
-
|`irc_listener_name`| Yes |`~d`| The name of the irc listener |
80
-
|`puppet_username`| No | username of discord account being puppeted | Yes | username to connect to irc with |
81
-
|`webirc_pass`| No || Yes | optional, but recommended for regular (non-simple) usage. this must be obtained by the IRC sysops |
82
-
|`debug`| Yes | false | Yes | debug mode |
83
-
|`insecure`, | Yes | false | Yes | TLS will skip verification (but still uses TLS) |
84
-
|`no_tls`, | Yes | false | Yes | turns off TLS |
85
-
|`webhook_prefix`, | Yes || No | a prefix for webhooks, so we know which ones to keep and which ones to delete |
86
-
|`nickserv_identify`| No || Yes | on connect this message will be sent: `PRIVMSG nickserv IDENTIFY <value>`, you can provide both a username and password if your ircd supports it |
87
-
|`cooldown_duration`| No | 86400 (24 hours) | Yes | time in seconds for a discord user to be offline before it's puppet disconnects from irc |
88
-
|`show_joinquit`| No | false | yes | displays JOIN, PART, QUIT, KICK on discord |
89
-
|`max_nick_length`| No | 30 | yes | Maximum allowed nick length |
90
-
|`connection_limit`| Yes | 0 | Yes | How many connections to IRC (including our listener) to spawn (limit of 0 or less means unlimited) |
|`avatar_url`| No |`https://ui-avatars.com/api/?name=${USERNAME}`| Yes | The URL for the API to use to tell Discord what Avatar to use for a User when the user's avatar cannot be found at Discord already. |
72
+
|`discord_token`| Yes || No |[The bot user token](https://github.com/reactiflux/discord-irc/wiki/Creating-a-discord-bot-&-getting-a-token)|
73
+
|`irc_server`| Yes || No | IRC server address |
74
+
|`channel_mappings`| No || No | a dict with irc channel as key (prefixed with `#`) and Discord channel ID as value |
75
+
|`guild_id`| No || No | the Discord guild (server) id |
76
+
|`irc_pass`| Yes || Yes | password for connecting to the IRC server |
77
+
|`suffix`| No |`~d`| Yes | appended to each Discord user's nickname when they are connected to IRC. If set to `_d2`, if the name will be `bob_d2`|
78
+
|`separator`| No |`_`| Yes | used in fallback situations. If set to `-`, the **fallback name** will be like `bob-7247_d2` (where `7247` is the discord user's discriminator, and `_d2` is the suffix) |
79
+
|`irc_listener_name`| Yes |`~d`| The name of the irc listener |
80
+
|`puppet_username`| No | username of discord account being puppeted | Yes | username to connect to irc with |
81
+
|`webirc_pass`| No || Yes | optional, but recommended for regular (non-simple) usage. this must be obtained by the IRC sysops |
82
+
|`debug`| Yes | false | Yes | debug mode |
83
+
|`insecure`, | Yes | false | Yes | TLS will skip verification (but still uses TLS) |
84
+
|`no_tls`, | Yes | false | Yes | turns off TLS |
85
+
|`webhook_prefix`, | Yes || No | a prefix for webhooks, so we know which ones to keep and which ones to delete |
86
+
|`nickserv_identify`| No || Yes | on connect this message will be sent: `PRIVMSG nickserv IDENTIFY <value>`, you can provide both a username and password if your ircd supports it |
87
+
|`cooldown_duration`| No | 86400 (24 hours) | Yes | time in seconds for a discord user to be offline before it's puppet disconnects from irc |
88
+
|`show_joinquit`| No | false | yes | displays JOIN, PART, QUIT, KICK on discord |
89
+
|`max_nick_length`| No | 30 | yes | Maximum allowed nick length |
90
+
|`ignored_irc_hostmasks`| No || Yes | A list of IRC users identified by hostmask to not relay to Discord, uses matching syntax as in [glob](https://github.com/gobwas/glob)|
91
+
|`connection_limit`| Yes | 0 | Yes | How many connections to IRC (including our listener) to spawn (limit of 0 or less means unlimited) |
91
92
92
93
**The filename.yaml file is continuously read from and many changes will
93
94
automatically update on the bridge. This means you can add or remove channels
0 commit comments