History

It seems to be working, minus removing from list

Zach Fox committed 9 years ago

Commit e26d3471 parent 46e8bf56 files · +28 −14Browse files

Showing the changes to libraries/script-engine/src/UsersScriptingInterface.cpp (1 of 6 files). Show all

Unified · Split

libraries/script-engine/src/UsersScriptingInterface.cpp+2−3
@@ -34,10 +34,10 @@ void UsersScriptingInterface::unignore(const QUuid& nodeID) { · 33 unmodified lines
34 DependencyManager::get<NodeList>()->unignoreNodeBySessionID(nodeID);34 DependencyManager::get<NodeList>()->unignoreNodeBySessionID(nodeID);
35}35}
36 36
37void UsersScriptingInterface::personalMute(const QUuid& nodeID, bool enabled) {37void UsersScriptingInterface::personalMute(const QUuid& nodeID, bool muteEnabled) {
38 // ask the NodeList to mute the user with the given session ID38 // ask the NodeList to mute the user with the given session ID
39 // "Personal Mute" only applies one way and is not global39 // "Personal Mute" only applies one way and is not global
40 DependencyManager::get<NodeList>()->personalMuteNodeBySessionID(nodeID, enabled);40 DependencyManager::get<NodeList>()->personalMuteNodeBySessionID(nodeID, muteEnabled);
41}41}
42 42
43void UsersScriptingInterface::requestPersonalMuteStatus(const QUuid& nodeID) {43void UsersScriptingInterface::requestPersonalMuteStatus(const QUuid& nodeID) {
@@ -45,7 +45,6 @@ void UsersScriptingInterface::requestPersonalMuteStatus(const QUuid& nodeID) { · 1 unmodified line
45 DependencyManager::get<NodeList>()->requestPersonalMuteStatus(nodeID);45 DependencyManager::get<NodeList>()->requestPersonalMuteStatus(nodeID);
46}46}
47 47
48
49void UsersScriptingInterface::kick(const QUuid& nodeID) {48void UsersScriptingInterface::kick(const QUuid& nodeID) {
50 // ask the NodeList to kick the user with the given session ID49 // ask the NodeList to kick the user with the given session ID
51 DependencyManager::get<NodeList>()->kickNodeBySessionID(nodeID);50 DependencyManager::get<NodeList>()->kickNodeBySessionID(nodeID);