|
|
@ -300,11 +300,13 @@ class MumbleCtlIce_120(MumbleCtlIce_118): |
|
|
|
return ret |
|
|
|
|
|
|
|
def registerPlayer(self, srvid, name, email, password): |
|
|
|
# To get the real values of these ENUM entries, try |
|
|
|
# Murmur.UserInfo.UserX.value |
|
|
|
from Murmur import UserInfo |
|
|
|
user = { |
|
|
|
UserInfo(0): name.encode( "UTF-8" ), |
|
|
|
UserInfo(1): email.encode( "UTF-8" ), |
|
|
|
UserInfo(4): password.encode( "UTF-8" ), |
|
|
|
UserInfo.UserName: name.encode( "UTF-8" ), |
|
|
|
UserInfo.UserEmail: email.encode( "UTF-8" ), |
|
|
|
UserInfo.UserPassword: password.encode( "UTF-8" ), |
|
|
|
}; |
|
|
|
return self._getIceServerObject(srvid).registerUser( user ); |
|
|
|
|
|
|
@ -317,9 +319,9 @@ class MumbleCtlIce_120(MumbleCtlIce_118): |
|
|
|
def setRegistration(self, srvid, mumbleid, name, email, password): |
|
|
|
from Murmur import UserInfo |
|
|
|
user = { |
|
|
|
UserInfo(0): name.encode( "UTF-8" ), |
|
|
|
UserInfo(1): email.encode( "UTF-8" ), |
|
|
|
UserInfo(4): password.encode( "UTF-8" ), |
|
|
|
UserInfo.UserName: name.encode( "UTF-8" ), |
|
|
|
UserInfo.UserEmail: email.encode( "UTF-8" ), |
|
|
|
UserInfo.UserPassword: password.encode( "UTF-8" ), |
|
|
|
}; |
|
|
|
return self._getIceServerObject( srvid ).updateRegistration( mumbleid, user ) |
|
|
|
|
|
|
|