-
Notifications
You must be signed in to change notification settings - Fork 36
Add format options support pm fix #78
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
Conversation
96f6b27 to
f8f7e3c
Compare
This commit introduces the ability to private message in such a way as to be considered "stable". Each bot get its own discriminator and this makes it where if you were to connect 2 bots to the same Discord identity but 2 different IRC networks when you send a private message since the discriminator is required it will not accidentally be sent to both IRC networks wherein both networks have a client with the same nick. This also enhances privacy since it isn't guaranteed the same person has the same nick on both networks. Pending: log a fatal and exit if Discriminator == "".
f8f7e3c to
93d2a70
Compare
Allows for the user to define how messages are formatted back and forth between Discord and IRC.
|
Need to check for Done in c7dc222 |
This change lets us have our cake and eat it too. If the configuration for a format is `" "` then it will just not send that message type. Previously this worked but it would send an empty message which Discord just really doesn't like!
Merge branch 'formatting-options-feature' into add-format-options-support-pm-fx
Allow for an empty format of `" "` to basically drop PMs (no introduction sent either).
|
I'd also like to propose a default PM format of: which would yield something like: llmII@ircnetwork: wrote a PM Which gives the Discord user enough information to know how to PM back and who to PM back but omits information such as what server the Discord relay is connected to and/or hostmasks. That said, I think it would be best to discuss the default formats but commit this as is and handle all formatting options for all merged formatting related things in another PR. |
No, we shouldn't warn. Co-authored-by: Qais Patankar <[email protected]>
When it is first load, if an invalid key is present in `discord_format` we inform the user of a fatal error and exit. If it's on reload we don't apply the new format and inform the user such was not done and that there is an error with an invalid key being present in the `discord_format` setting.
When it is first load, if an invalid key is present in `discord_format` we inform the user of a fatal error and exit. If it's on reload we don't apply the new format and inform the user such was not done and that there is an error with an invalid key being present in the `discord_format` setting.
This depends on #75 and #76.
Integrates support for PM's with the formatting options so that way they can have a way of being formatted as well.
Figure that all single-sourced messages (JOIN/PART/QUIT (NICK via #72 and formatting for NICK via #79)) relayed towards Discord should have a way to format it.
Still pending figuring out best way to document this in
README.md.