diff options
author | C. McEnroe | 2021-06-18 12:28:09 -0400 |
---|---|---|
committer | C. McEnroe | 2021-06-18 12:28:09 -0400 |
commit | a5a225c52c39f438a95b0ed2481ee273aab02640 (patch) | |
tree | ce756be25021a323d536443e135cbe0286a8cd6e /chat.c | |
parent | d3b2f86a4b6ce5aa9b5e54551ce2b399e13666b9 (diff) |
Add -m mode option to set user modes
Diffstat (limited to 'chat.c')
-rw-r--r-- | chat.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |