From d198652a0ba0d67283db3ca5aabab5c9a579775a Mon Sep 17 00:00:00 2001 From: akirschbaum Date: Thu, 10 Nov 2005 19:21:15 +0000 Subject: [PATCH] Disallow player name '#' since this key is used for the file head line. git-svn-id: svn://svn.code.sf.net/p/crossfire/code/trunk/maps@4023 282e977c-c81d-0410-88c4-b93c2d0d6712 --- python/CFLog.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/CFLog.py b/python/CFLog.py index 19e3b41b9..a623d2a74 100644 --- a/python/CFLog.py +++ b/python/CFLog.py @@ -76,6 +76,8 @@ class CFLog: self.log.put_record(record) def info(self, name): + if name == '#': + return 0 record = self.log.get_record(name) if record: return record