Ever since this functionality got added on a whim in 2016, sending a message matching ^s/.+/ is impossible, as it will edit the last message with this 'sed' syntax.
Sadly, this implementation of 'sed' syntax has a few obvious bugs, none of which have been noticed or fixed since this functionality got added:
You need to omit the / at the end of the s/ expression. This would be invalid in real sed, and not omitting it leads to the replacement having a / in the edited message.
It doesn't support regular expressions. Some IRC bots did. By eating all messages that contain this, you also can't implement this in a bot yourself.
It only edits the last message you sent - it doesn't go up to any messages before.
If no match is found, your message is edited (with no change, other than adding an 'edited' marker), and the message you wrote starting with s/ is deleted entirely, with no way to recall it. This makes for fun when trying to do the classical IRC use case of:
\ i made an dollar today
\ s/an /a /
... as your message gets eaten entirely. If this were a long message, such as s/an dollar/a monetary unit known as a dollar/, your message is gone with the wind, and your last message before that got a magical no-op edit.
Ever since this functionality got added on a whim in 2016, sending a message matching
^s/.+/
is impossible, as it will edit the last message with this 'sed' syntax.Sadly, this implementation of 'sed' syntax has a few obvious bugs, none of which have been noticed or fixed since this functionality got added:
/
at the end of thes/
expression. This would be invalid in realsed
, and not omitting it leads to the replacement having a/
in the edited message.If no match is found, your message is edited (with no change, other than adding an 'edited' marker), and the message you wrote starting with s/ is deleted entirely, with no way to recall it. This makes for fun when trying to do the classical IRC use case of:
... as your message gets eaten entirely. If this were a long message, such as
s/an dollar/a monetary unit known as a dollar/
, your message is gone with the wind, and your last message before that got a magical no-op edit.