Handle /me and /describe cases

This commit is contained in:
Eragon 2022-03-11 19:18:36 +01:00
parent 38a91b77b7
commit ccebb6b410
Signed by: Eragon
GPG Key ID: 087126EBFC725006
1 changed files with 2 additions and 0 deletions

View File

@ -49,6 +49,8 @@ class Shoutbox(object):
return callback
def post(self, user, msg, channel, users):
if msg.startswith("ACTION"):
msg = msg.replace("ACTION", "/me")
if any(user in t for t in users):
for i in users:
if i[1] == user: