From 6bbd89c342ff9d84c04b019f3bb621ae0fa68d19 Mon Sep 17 00:00:00 2001 From: John Cote Date: Wed, 8 Jan 2020 20:59:02 -0500 Subject: [PATCH] Update Emote.py --- otp/avatar/Emote.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/otp/avatar/Emote.py b/otp/avatar/Emote.py index b23de8c..6c36dca 100644 --- a/otp/avatar/Emote.py +++ b/otp/avatar/Emote.py @@ -1,5 +1,4 @@ from otp.otpbase import OTPLocalizer -import types class Emote: EmoteClear = -1 @@ -10,7 +9,7 @@ class Emote: return def isEnabled(self, index): - if isinstance(index, bytes): + if isinstance(index, str): index = OTPLocalizer.EmoteFuncDict[index] if self.emoteFunc == None: return 0