diff options
author | June McEnroe <june@causal.agency> | 2020-02-11 22:39:29 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-02-11 22:39:29 -0500 |
commit | 10ae7bedbd1dac946ee97c3fb27676cde2237621 (patch) | |
tree | 9d9f3123d94681ffb9aa90b9c79211343609f1a8 /chat.c | |
parent | Add chroot target (diff) | |
download | catgirl-10ae7bedbd1dac946ee97c3fb27676cde2237621.tar.gz catgirl-10ae7bedbd1dac946ee97c3fb27676cde2237621.zip |
Add -R restricted flag
Diffstat (limited to '')
-rw-r--r-- | chat.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chat.c b/chat.c index 4577bb7..14a02cb 100644 --- a/chat.c +++ b/chat.c @@ -93,12 +93,13 @@ int main(int argc, char *argv[]) { const char *user = NULL; const char *real = NULL; - const char *Opts = "!C:H:O:a:c:eh:j:k:n:p:r:s:u:vw:"; + const char *Opts = "!C:H:O:Ra:c:eh:j:k:n:p:r:s:u:vw:"; const struct option LongOpts[] = { { "insecure", no_argument, NULL, '!' }, { "copy", required_argument, NULL, 'C' }, { "hash", required_argument, NULL, 'H' }, { "open", required_argument, NULL, 'O' }, + { "restrict", no_argument, NULL, 'R' }, { "sasl-plain", required_argument, NULL, 'a' }, { "cert", required_argument, NULL, 'c' }, { "sasl-external", no_argument, NULL, 'e' }, @@ -122,6 +123,7 @@ int main(int argc, char *argv[]) { break; case 'C': urlCopyUtil = optarg; break; case 'H': hashInit = strtoul(optarg, NULL, 0); break; case 'O': urlOpenUtil = optarg; + break; case 'R': self.restricted = true; break; case 'a': sasl = true; self.plain = optarg; break; case 'c': cert = optarg; break; case 'e': sasl = true; |