Hier mal die Stelle:
Code:
def OnRecvWhisper(self, mode, name, line):
listTeamName = "["
if name.find(listTeamName)!=-1:
chat.AppendWhisper(chat.WHISPER_TYPE_GM, name, line)
self.interface.RegisterGameMasterName(name)
else:
text = line
##ignore player
handle2 = app.OpenTextFile("block.txt")
count2 = app.GetTextFileLineCount(handle2)
for i in xrange(count2):
line2 = app.GetTextFileLine(handle2, i)
if line2 == name and not name.find("[")!=-1:
chat.AppendChat(chat.CHAT_TYPE_INFO, "Geblockter Spieler : "+name+" hat versucht sie zu PN")
net.SendWhisperPacket(name,"Sie wurden vom Spieler Geblockt")
return
app.CloseTextFile(handle2)
chat.AppendWhisper(chat.WHISPER_TYPE_CHAT, name, line)
self.interface.RecvWhisper(name)





