aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-09-08 08:05:52 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2014-09-08 08:05:52 +0200
commitf9dc09f20067810d81f2b9e825c9685f54f5c651 (patch)
treedd93883d3e912929e72180fbe61858aabf6619b7
parent1f5510af967b0a48d4c1e06ccb423f60838f4f7d (diff)
downloadsircbot-f9dc09f20067810d81f2b9e825c9685f54f5c651.tar.bz2
sircbot-f9dc09f20067810d81f2b9e825c9685f54f5c651.tar.xz
fix -u option to set user
Make it correspond with the help text
-rw-r--r--sircbot.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sircbot.c b/sircbot.c
index 9ec515a..1f3f5cc 100644
--- a/sircbot.c
+++ b/sircbot.c
@@ -590,7 +590,7 @@ int main(int argc, char *argv[])
int i, c, port = 6667, multimode = 0;
sb.runhooks = 1;
- while ((c = getopt(argc, argv, "fl:mn:Np:P:r:s:")) != -1) {
+ while ((c = getopt(argc, argv, "fl:mn:Np:P:r:s:u:")) != -1) {
switch (c) {
case 'f':
foreground = 1;
@@ -619,6 +619,9 @@ int main(int argc, char *argv[])
case 's':
server = optarg;
break;
+ case 'u':
+ user = optarg;
+ break;
default:
usage_exit(1);
}