Update Emote.py
This commit is contained in:
parent
8a2e5b788d
commit
6bbd89c342
1 changed files with 1 additions and 2 deletions
|
@ -1,5 +1,4 @@
|
||||||
from otp.otpbase import OTPLocalizer
|
from otp.otpbase import OTPLocalizer
|
||||||
import types
|
|
||||||
|
|
||||||
class Emote:
|
class Emote:
|
||||||
EmoteClear = -1
|
EmoteClear = -1
|
||||||
|
@ -10,7 +9,7 @@ class Emote:
|
||||||
return
|
return
|
||||||
|
|
||||||
def isEnabled(self, index):
|
def isEnabled(self, index):
|
||||||
if isinstance(index, bytes):
|
if isinstance(index, str):
|
||||||
index = OTPLocalizer.EmoteFuncDict[index]
|
index = OTPLocalizer.EmoteFuncDict[index]
|
||||||
if self.emoteFunc == None:
|
if self.emoteFunc == None:
|
||||||
return 0
|
return 0
|
||||||
|
|
Loading…
Reference in a new issue