Update Emote.py

This commit is contained in:
John Cote 2020-01-08 20:59:02 -05:00
parent 8a2e5b788d
commit 6bbd89c342

View file

@ -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