History

Initial cut

No script work yet, just first stab at underpinnings

David Kelly committed 10 years ago

Commit 285520d1 parent 5b91c8f12 files · +94 −4Browse files

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

Unified · Split

libraries/script-engine/src/UsersScriptingInterface.cpp+5−0
@@ -29,6 +29,11 @@ void UsersScriptingInterface::kick(const QUuid& nodeID) { · 28 unmodified lines
2929 DependencyManager::get<NodeList>()->kickNodeBySessionID(nodeID);
3030 }
3131
32+void UsersScriptingInterface::mute(const QUuid& nodeID) {
33+ // ask the NodeList to mute the user with the given session ID
34+ DependencyManager::get<NodeList>()->muteNodeBySessionID(nodeID);
35+}
36+
3237 bool UsersScriptingInterface::getCanKick() {
3338 // ask the NodeList to return our ability to kick
3439 return DependencyManager::get<NodeList>()->getThisNodeCanKick();