Code:
uiwhisper.py opens
# arat #
def SendWhisper(self):
# içinde #
net.SendWhisperPacket(self.targetName, text)
self.chatLine.SetText("")
chat.AppendWhisper(chat.WHISPER_TYPE_CHAT, self.targetName, player.GetName() + " : " + text)
# değiştir #
SaatKac = time.strftime("%H:%M")
net.SendWhisperPacket(self.targetName, " |cff00ccff[" + SaatKac + "]|cff00FF7F " + ":" + text)
self.chatLine.SetText("")
chat.AppendWhisper(chat.WHISPER_TYPE_CHAT, self.targetName, player.GetName() + ": " + " |cff00ccff[" + SaatKac + "]|cFFFF6060 " + ":" + text)
MUST BE
def SendWhisper(self):
import time
import player
text = self.chatLine.GetText()
textLength = len(text)
if textLength > 0:
if net.IsInsultIn(text):
chat.AppendChat(chat.CHAT_TYPE_INFO, locale.CHAT_INSULT_STRING)
return
SaatKac = time.strftime("%H:%M")
net.SendWhisperPacket(self.targetName, " |cff00ccff[" + SaatKac + "]|cff00FF7F " + ":" + text)
self.chatLine.SetText("")
chat.AppendWhisper(chat.WHISPER_TYPE_CHAT, self.targetName, player.GetName() + ": " + " |cff00ccff[" + SaatKac + "]|cFFFF6060 " + ":" + text)