From a5a225c52c39f438a95b0ed2481ee273aab02640 Mon Sep 17 00:00:00 2001 From: C. McEnroe Date: Fri, 18 Jun 2021 12:28:09 -0400 Subject: Add -m mode option to set user modes --- chat.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'chat.c') diff --git a/chat.c b/chat.c index 49fc8c0..8816068 100644 --- a/chat.c +++ b/chat.c @@ -180,6 +180,7 @@ int main(int argc, char *argv[]) { { .val = 'j', .name = "join", required_argument }, { .val = 'k', .name = "priv", required_argument }, { .val = 'l', .name = "log", no_argument }, + { .val = 'm', .name = "mode", required_argument }, { .val = 'n', .name = "nick", required_argument }, { .val = 'o', .name = "print-chain", no_argument }, { .val = 'p', .name = "port", required_argument }, @@ -222,6 +223,7 @@ int main(int argc, char *argv[]) { break; case 'j': self.join = optarg; break; case 'k': priv = optarg; break; case 'l': logEnable = true; + break; case 'm': self.mode = optarg; break; case 'n': nick = optarg; break; case 'o': insecure = true; printCert = true; break; case 'p': port = optarg; -- cgit 1.4.1-2-gfad0