aboutsummaryrefslogtreecommitdiffstats
path: root/kirc.h
diff options
context:
space:
mode:
authorstefan11111 <stefan11111@shitposting.expert>2025-05-04 01:51:16 +0300
committerGitHub <noreply@github.com>2025-05-03 18:51:16 -0400
commita6dd1883eaee2ce6222ac3d4eed640fd61ae304b (patch)
tree3ef4e4639017bd82f1aadbb290773002437eec57 /kirc.h
parentreleased at 0.3.2 (#145) (diff)
downloadkirc-a6dd1883eaee2ce6222ac3d4eed640fd61ae304b.tar.gz
kirc-a6dd1883eaee2ce6222ac3d4eed640fd61ae304b.tar.bz2
kirc-a6dd1883eaee2ce6222ac3d4eed640fd61ae304b.tar.xz
kirc-a6dd1883eaee2ce6222ac3d4eed640fd61ae304b.tar.zst
kirc-a6dd1883eaee2ce6222ac3d4eed640fd61ae304b.zip
Some unmerged changes I still had laying around (#146)
Co-authored-by: Emeka Nkurumeh <emekankurumeh@outlook.com>
Diffstat (limited to 'kirc.h')
-rw-r--r--kirc.h8
1 files changed, 5 insertions, 3 deletions
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 {