From 135e78899cd6b499b956639cb056b710ddf17032 Mon Sep 17 00:00:00 2001 From: Mariusz Mazur Date: Sun, 11 Sep 2005 13:14:03 +0000 Subject: [PATCH] - remember who and when locked a tree Changed files: modules/cmds.py -> 1.12 --- modules/cmds.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/cmds.py b/modules/cmds.py index b46047b..7f4b809 100644 --- a/modules/cmds.py +++ b/modules/cmds.py @@ -38,9 +38,9 @@ def parse(con): def lock(con, arg, hard): if arg not in locks: - locks[arg]=hard + locks[arg]={'hard': hard, 'name': con.name, 'time': int(time.time())} con.sock.send("OK") - elif locks[arg]: + elif locks[arg]['hard']: con.sock.send("HARD") # Hard lock - you can go get a cup of tea else: con.sock.send("SOFT") # Soft lock - try in a second or two -- 2.44.0