about summary refs log tree commit diff
path: root/ui.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-01-25 18:27:07 -0500
committerJune McEnroe <june@causal.agency>2021-01-25 18:27:07 -0500
commitbd210e0f35e9c08484eebcb8f20f9c908505226c (patch)
tree591466d00fc5c556a0943c3d1afa1350b662e0a6 /ui.c
parentDon't print timestamps for blank lines in bufferList (diff)
downloadcatgirl-bd210e0f35e9c08484eebcb8f20f9c908505226c.tar.gz
catgirl-bd210e0f35e9c08484eebcb8f20f9c908505226c.zip
Disable notify in restricted mode
catgirl shouldn't try to execute a command if it is misconfigured
with both restrict and notify.
Diffstat (limited to 'ui.c')
-rw-r--r--ui.c1
1 files changed, 1 insertions, 0 deletions
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] = "";
17:43:36 -0500'>2020-02-11Define ColorCap instead of hardcoding 100June McEnroe 2020-02-11Move hash to top of chat.hJune McEnroe 2020-02-11Move base64 out of chat.hJune McEnroe 2020-02-11Move XDG_SUBDIR out of chat.hJune McEnroe 2020-02-11Fix whois idle unit calculationJune McEnroe Rookie mistake. 2020-02-11Cast towupper to wchar_tJune McEnroe For some reason it takes and returns wint_t... 2020-02-11Cast set but unused variables to voidJune McEnroe 2020-02-11Declare strlcatJune McEnroe 2020-02-11Check if VDSUSP existsJune McEnroe 2020-02-11Fix completeReplace iterationJune McEnroe 2020-02-11Use pkg(8) to configure on FreeBSDJune McEnroe 2020-02-11Remove legacy codeJune McEnroe 2020-02-11Add INSTALLING section to READMEJune McEnroe