Skip to content

Commit

Permalink
Fix /me commands not showing properly
Browse files Browse the repository at this point in the history
  • Loading branch information
douglascdev committed Mar 21, 2024
1 parent 6a527f3 commit a6822db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hasherino/parse_irc.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,12 @@ def get_message_text(self) -> str:

if self.is_me():
# parameters: '\x01ACTION asd\x01\r\n'
result = self.parameters[8:-1]
result = result[8:-1]

if self.parameters is not None and self.get_command() is Command.PRIVMSG:
# Remove \r\n from end of text
if len(self.parameters) >= 2 and self.parameters[-2:] == "\r\n":
result = self.parameters[:-2]
result = result[:-2]

return result

Expand Down

0 comments on commit a6822db

Please sign in to comment.