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:
authorAlKorgun@gmail.com <AlKorgun@gmail.com@94c44753-77e5-68b8-8764-2ca2b8acb85e>2012-09-30 04:24:17 +0400
committerAlKorgun@gmail.com <AlKorgun@gmail.com@94c44753-77e5-68b8-8764-2ca2b8acb85e>2012-09-30 04:24:17 +0400
commit1946fdc379ed15f2aae68410ec4e4a5aeabe2301 (patch)
treea538e9a5fabdb81763d323f8130b7f45b15be2ec /BlackSmith.py
parent63da6ef97299d7e0afef4473b9f38a7c33b9b981 (diff)
update of roster_control
Diffstat (limited to 'BlackSmith.py')
-rw-r--r--BlackSmith.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/BlackSmith.py b/BlackSmith.py
index 90d1fa7..63418b8 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, 26, 0)
+(BsMark, BsVer, BsRev) = (2, 27, 0)
if os.access(SvnCache, os.R_OK):
Cache = open(SvnCache).readlines()
@@ -1396,7 +1396,9 @@ def Xmpp_Message_Cb(disp, stanza):
if stanza.getTimestamp():
xmpp_raise()
isConf = Chats.has_key(instance)
- if not isConf:
+ if not isConf and not enough_access(instance, nick, 7):
+ if not Roster["on"]:
+ xmpp_raise()
CheckFlood(disp)
if not Mserve and isConf and Chats[instance].isModer is False:
xmpp_raise()