creesch / discordIRCd

A node.js script that allows you to connect to discord with your irc client.
Apache License 2.0
115 stars 21 forks source link

Option to resend edited messages. #26

Open creesch opened 7 years ago

creesch commented 7 years ago
Scrxtchy commented 7 years ago

Should there be an configurable timeout for edits? Say if someone edits a week old message randomly, it may no longer have any relevance, but is bumped into the buffer

Might be a bit confusing, but if the option was a boolean or a number representation of minutes

if (configuration.timeout && x <= messageAge) {
    //resend message
}

If false, or 0, the message won't be resent true will send it no matter what, or it's number value will have to lower than the age

creesch commented 7 years ago

Good point and good solution. I'll implement it like that.