From bd210e0f35e9c08484eebcb8f20f9c908505226c Mon Sep 17 00:00:00 2001 From: C. McEnroe Date: Mon, 25 Jan 2021 18:27:07 -0500 Subject: Disable notify in restricted mode catgirl shouldn't try to execute a command if it is misconfigured with both restrict and notify. --- ui.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ui.c') diff --git a/ui.c b/ui.c index 1a16ca0..a0bee13 100644 --- a/ui.c +++ b/ui.c @@ -533,6 +533,7 @@ windowScrollSearch(struct Window *window, const char *str, int dir) { struct Util uiNotifyUtil; static void notify(uint id, const char *str) { + if (self.restricted) return; if (!uiNotifyUtil.argc) return; char buf[1024] = ""; -- cgit 1.4.1-2-gfad0