From 2f503d0bccf1a9dd2bd1c9812f39d92c3b9a5727 Mon Sep 17 00:00:00 2001 From: Zach Fox Date: Thu, 5 Jan 2017 13:25:27 -0800 Subject: [PATCH] Allow for compatibility with old mod.js script --- libraries/script-engine/src/UsersScriptingInterface.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/script-engine/src/UsersScriptingInterface.h b/libraries/script-engine/src/UsersScriptingInterface.h index 4182d5244c..341285a742 100644 --- a/libraries/script-engine/src/UsersScriptingInterface.h +++ b/libraries/script-engine/src/UsersScriptingInterface.h @@ -37,7 +37,7 @@ public slots: * @param {nodeID} nodeID The node or session ID of the user you want to ignore. * @param {bool} enable True for ignored; false for un-ignored. */ - void ignore(const QUuid& nodeID, bool ignoreEnabled); + void ignore(const QUuid& nodeID, bool ignoreEnabled = true); /**jsdoc * Gets a bool containing whether you have ignored the given Avatar UUID. @@ -52,7 +52,7 @@ public slots: * @param {nodeID} nodeID The node or session ID of the user you want to mute. * @param {bool} enable True for enabled; false for disabled. */ - void personalMute(const QUuid& nodeID, bool muteEnabled); + void personalMute(const QUuid& nodeID, bool muteEnabled = true); /**jsdoc * Requests a bool containing whether you have personally muted the given Avatar UUID.