Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/alkorgun/blacksmith-2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAl Korgun <alkorgun@gmail.com>2012-12-04 20:35:22 +0400
committerAl Korgun <alkorgun@gmail.com>2012-12-04 20:35:22 +0400
commitec66b4cb7eb50ac9b339a2a9721257d5a90be4ca (patch)
tree0a62966ffbb84731c25c26dd6ba6932874d3daeb
parentcc8beefeb9b2904af689df81d672feffe54afc51 (diff)
some modifications
-rw-r--r--BlackSmith.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/BlackSmith.py b/BlackSmith.py
index ab8c2cf..ff094a0 100644
--- a/BlackSmith.py
+++ b/BlackSmith.py
@@ -264,7 +264,7 @@ GenConFile = static % ("config.ini")
ConDispFile = static % ("clients.ini")
ChatsFile = dynamic % ("chats.db")
-(BsMark, BsVer, BsRev) = (2, 39, 0)
+(BsMark, BsVer, BsRev) = (2, 40, 0)
if os.access(SvnCache, os.R_OK):
Cache = open(SvnCache).readlines()
@@ -544,7 +544,7 @@ class Command(object):
self.isAvalable = True
self.help = help
self.handler = inst
- self.desc = []
+ self.desc = set()
self.access = access
def reload(self, inst, access, help, exp):
@@ -565,8 +565,8 @@ class Command(object):
sThread("command", self.handler, (self.exp, stype, source, body, disp), self.name)
self.numb.plus()
source = get_source(source[1], source[2])
- if source and source not in self.desc:
- self.desc.append(source)
+ if source:
+ self.desc.add(source)
else:
Answer(AnsBase[19] % (self.name), stype, source, disp)
else: