From a6dd1883eaee2ce6222ac3d4eed640fd61ae304b Mon Sep 17 00:00:00 2001 From: stefan11111 Date: Sun, 4 May 2025 01:51:16 +0300 Subject: Some unmerged changes I still had laying around (#146) Co-authored-by: Emeka Nkurumeh --- kirc.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'kirc.h') diff --git a/kirc.h b/kirc.h index 2170fb8..1826826 100644 --- a/kirc.h +++ b/kirc.h @@ -56,8 +56,9 @@ static char verb = 0; /* verbose output */ static char sasl = 0; /* SASL method */ static char isu8 = 0; /* UTF-8 flag */ static char dcc = 0; /* DCC flag */ -static char filter = 0; /* flag to filter ansi colors */ -static char* dcc_dir = NULL; /* DCC download directory */ +static char filter = 0; /* flag to filter ansi colors */ +static char* dcc_dir = NULL; /* DCC download directory */ +static mode_t dcc_mode = DCC_MODE; /* file permissions for downloaded files */ static const char *host = "irc.libera.chat"; /* host address */ static const char *port = "6667"; /* port */ static char chan[MSG_MAX]; /* channel and prompt */ @@ -116,7 +117,8 @@ typedef struct STATE { size_t lenu8; /* Current edited line length. */ size_t cols; /* Number of columns in terminal. */ int history_index; /* Current line in the edit history */ - char nick_privmsg; /* whether or not we are sending messages to a chan or nick */ + char nick_privmsg; /* whether or not we are sending messages to a chan or nick */ + char chan_privmsg; /* flag to toggle raw messages */ } state_t, *state; struct abuf { -- cgit v1.2.3