Restore transmit state after unmute/deafen. Send proper notifications to other users.
This commit is contained in:
+46
-6
@@ -65,27 +65,67 @@ micup() {
|
||||
}
|
||||
|
||||
mute() {
|
||||
[[ $notify ]] && notify "You muted yourself."
|
||||
if [[ "$2" == "me" ]]; then
|
||||
[[ $notify ]] && notify "You muted yourself."
|
||||
else
|
||||
[[ $notify ]] && notify "$2 muted."
|
||||
fi
|
||||
}
|
||||
|
||||
unmute() {
|
||||
[[ $notify ]] && notify "You unmuted yourself."
|
||||
if [[ "$2" == "me" ]]; then
|
||||
[[ $notify ]] && notify "You unmuted yourself."
|
||||
else
|
||||
[[ $notify ]] && notify "$2 unmuted."
|
||||
fi
|
||||
}
|
||||
|
||||
mutedeafen() {
|
||||
[[ $notify ]] && notify "You muted and deafened yourself."
|
||||
if [[ "$2" == "me" ]]; then
|
||||
[[ $notify ]] && notify "You muted and deafened yourself."
|
||||
else
|
||||
[[ $notify ]] && notify "$2 muted and deafened."
|
||||
fi
|
||||
}
|
||||
|
||||
deafen() {
|
||||
[[ $notify ]] && notify "You deafened yourself."
|
||||
if [[ "$2" == "me" ]]; then
|
||||
[[ $notify ]] && notify "You deafened yourself."
|
||||
else
|
||||
[[ $notify ]] && notify "$2 deafened."
|
||||
fi
|
||||
}
|
||||
|
||||
undeafen() {
|
||||
if [[ "$2" == "me" ]]; then
|
||||
[[ $notify ]] && notify "You undeafened yourself."
|
||||
else
|
||||
[[ $notify ]] && notify "$2 undeafened."
|
||||
fi
|
||||
}
|
||||
|
||||
muteundeafen() {
|
||||
[[ $notify ]] && notify "You undeafened yourself. Your microphone remains muted."
|
||||
if [[ "$2" == "me" ]]; then
|
||||
[[ $notify ]] && notify "You undeafened yourself. Your microphone remains muted."
|
||||
else
|
||||
[[ $notify ]] && notify "$2 muted and undeafened."
|
||||
fi
|
||||
}
|
||||
|
||||
unmuteundeafen() {
|
||||
[[ $notify ]] && notify "You unmuted and undeafened yourself."
|
||||
if [[ "$2" == "me" ]]; then
|
||||
[[ $notify ]] && notify "You unmuted and undeafened yourself."
|
||||
else
|
||||
[[ $notify ]] && notify "$2 unmuted and undeafened."
|
||||
fi
|
||||
}
|
||||
|
||||
unmutedeafen() {
|
||||
if [[ "$2" == "me" ]]; then
|
||||
[[ $notify ]] && notify "You unmuted and deafened yourself."
|
||||
else
|
||||
[[ $notify ]] && notify "$2 unmuted and deafened."
|
||||
fi
|
||||
}
|
||||
|
||||
msg() {
|
||||
|
||||
Reference in New Issue
Block a user