Fix authenticator
This commit is contained in:
parent
220c0005ba
commit
2ef0d0654a
@ -15,8 +15,6 @@ def clientLoopIn(self):
|
||||
if not "channel" in args: args["channel"] = "default"
|
||||
if not "channel-password" in args: args["channel-password"] = ""
|
||||
|
||||
if not authenticate(args["user"],args["user-password"]): return
|
||||
|
||||
with clientDataLock:
|
||||
setClientData(self.cID,"type",cmd[0])
|
||||
setClientData(self.cID,"args",args)
|
||||
@ -30,6 +28,7 @@ def clientLoopIn(self):
|
||||
setClientData(self.cID,"queue",q)
|
||||
|
||||
if cmd[0] == "broadcast":
|
||||
if not authenticate(args["user"],args["user-password"]): return
|
||||
buffer = getClientData(self.cID,"buffer")
|
||||
packet = -1
|
||||
packetMin = 0
|
||||
|
Loading…
Reference in New Issue
Block a user