Skip to content

mIRC formatting (colours etc.) not stripped from IRC messages #145

Description

@alanbriolat

Example, repr() vs. str():

(D:csbot.raw_log) >>> ':hackbot!~hackbot@runciman.hacksoc.org PRIVMSG #hacksoc :<\x034atc520\x0f> Oh, oh dear'
(I:csbot.pretty_log) [#hacksoc] <hackbot> <4atc520> Oh, oh dear

It's unclear whether this is a bug or a feature request. In some cases we might want to preserve such things, in other cases they might interfere with other logic. I'd suggest exposing the message content both before and after stripping (the latter being the default, i.e. requiring no code change elsewhere), and allow plugins to make their own decisions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions