diff --git a/partybot-matrix.py b/partybot-matrix.py index 99c2808..98888e6 100644 --- a/partybot-matrix.py +++ b/partybot-matrix.py @@ -37,8 +37,7 @@ def karma_cb(room, event): for mxid in members: alias = re.search('@(pnut_)?([^:]+)', mxid).group(2) - if alias.lower() == handle.lower(): - print('match') + if alias.lower() == handle.lower() or handle.lower() == 'partybot': if sign == '++': rs.incr("partybot:k_" + event['room_id'] + "@" + handle)