Skip to content

Commit

Permalink
Convert <s> and <strike> to correct IRC code
Browse files Browse the repository at this point in the history
  • Loading branch information
luk3yx committed Mar 22, 2024
1 parent a1b4595 commit c822f4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion miniirc_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import miniirc, requests, traceback # type: ignore


ver = (0, 0, 10)
ver = (0, 0, 11)
__version__ = '.'.join(map(str, ver))


Expand Down Expand Up @@ -234,6 +234,8 @@ class _MatrixHTMLParser(html.parser.HTMLParser):
irc_codes['b'] = irc_codes['strong']
irc_codes['i'] = irc_codes['em']
irc_codes['br'] = '\n'
irc_codes['s'] = irc_codes['del']
irc_codes['strike'] = irc_codes['del']

def __init__(self) -> None:
super().__init__()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name='miniirc_matrix',
version='0.0.10',
version='0.0.11',
py_modules=['miniirc_matrix'],
author='luk3yx',
description='A Matrix wrapper for miniirc.',
Expand Down

0 comments on commit c822f4f

Please sign in to comment.