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

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorvald Natvig <slicer@users.sourceforge.net>2010-07-16 18:46:51 +0400
committerThorvald Natvig <slicer@users.sourceforge.net>2010-07-17 03:13:39 +0400
commit75df5b7987dd5f301b9be0ade7c8a4527faf352a (patch)
treea20a915f41bc98edea1a031d860d7a9c6dcdf902 /scripts
parent932fe136d7f897e249c38648df3b9bbc4992fd8d (diff)
Handle external auth with whitespace
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/testauth.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/testauth.py b/scripts/testauth.py
index cfc076fa0..b165d6d2c 100755
--- a/scripts/testauth.py
+++ b/scripts/testauth.py
@@ -25,6 +25,11 @@ class ServerAuthenticatorI(Murmur.ServerUpdatingAuthenticator):
return (2, "twO", groups)
else:
return (-1, None, None)
+ elif (name == "White Space"):
+ if (pw == "Space White"):
+ return (3, "White Space", groups)
+ else:
+ return (-1, None, None)
elif (name == "Fail"):
time.sleep(6)
return (-2, None, None)