diff options
author | AlKorgun@gmail.com <AlKorgun@gmail.com@94c44753-77e5-68b8-8764-2ca2b8acb85e> | 2012-09-30 04:24:17 +0400 |
---|---|---|
committer | AlKorgun@gmail.com <AlKorgun@gmail.com@94c44753-77e5-68b8-8764-2ca2b8acb85e> | 2012-09-30 04:24:17 +0400 |
commit | 1946fdc379ed15f2aae68410ec4e4a5aeabe2301 (patch) | |
tree | a538e9a5fabdb81763d323f8130b7f45b15be2ec /BlackSmith.py | |
parent | 63da6ef97299d7e0afef4473b9f38a7c33b9b981 (diff) |
update of roster_control
Diffstat (limited to 'BlackSmith.py')
-rw-r--r-- | BlackSmith.py | 6 |
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() |