chat: Only reference whitelist if it's created.
This commit is contained in:
parent
5f466f3d30
commit
618a7dd382
2 changed files with 3 additions and 2 deletions
|
@ -35,13 +35,13 @@ class TTChatInputNormal(ChatInputNormal.ChatInputNormal):
|
|||
exec 'from toontown.toonbase.ToonBaseGlobal import *' in globals(), self.ExecNamespace
|
||||
|
||||
def typeCallback(self, extraArgs):
|
||||
if localAvatar.chatMgr.chatInputWhiteList.isActive():
|
||||
if localAvatar.chatMgr.chatInputWhiteList and localAvatar.chatMgr.chatInputWhiteList.isActive():
|
||||
return
|
||||
else:
|
||||
messenger.send('enterNormalChat')
|
||||
|
||||
def checkForOverRide(self):
|
||||
return False
|
||||
if localAvatar.chatMgr.chatInputWhiteList.isActive():
|
||||
if localAvatar.chatMgr.chatInputWhiteList and localAvatar.chatMgr.chatInputWhiteList.isActive():
|
||||
return True
|
||||
return False
|
||||
|
|
|
@ -56,6 +56,7 @@ class ToontownChatManager(ChatManager.ChatManager):
|
|||
self.normalPos = Vec3(-1.083, 0, 0.804)
|
||||
self.whisperPos = Vec3(0.0, 0, 0.71)
|
||||
self.speedChatPlusPos = Vec3(-0.35, 0, 0.71)
|
||||
self.chatInputWhiteList = None
|
||||
#self.chatInputWhiteList = TTChatInputWhiteList()
|
||||
#if self.defaultToWhiteList:
|
||||
# self.chatInputNormal = self.chatInputWhiteList
|
||||
|
|
Loading…
Reference in a new issue