aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2017-04-28 16:52:29 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2017-04-28 16:52:29 +0200
commit91e0989879dadf8a8fe49ba3cafebec5fd8744f9 (patch)
tree32fc999db385e29ff8fc749349ae3b54451fc692
parent7a73cf3d8bbe5445e441d400099736f05cc4e5d8 (diff)
downloadirc-91e0989879dadf8a8fe49ba3cafebec5fd8744f9.zip
irc-91e0989879dadf8a8fe49ba3cafebec5fd8744f9.tar.bz2
Fixes issue with options, username vs nick.
-rw-r--r--src/irc/irc_send.c4
-rw-r--r--src/parameters/parameters.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/irc/irc_send.c b/src/irc/irc_send.c
index 6297a6e..f222428 100644
--- a/src/irc/irc_send.c
+++ b/src/irc/irc_send.c
@@ -42,7 +42,7 @@ int JH_irc_send_message
printf
(
"[CHAT] <%s> %s\n",
- JH_parameters_get_irc_username(irc->params),
+ JH_parameters_get_irc_nick(irc->params),
msg
);
}
@@ -84,7 +84,7 @@ int JH_irc_send_action
printf
(
"[CHAT] *%s %s*\n",
- JH_parameters_get_irc_username(irc->params),
+ JH_parameters_get_irc_nick(irc->params),
msg
);
}
diff --git a/src/parameters/parameters.c b/src/parameters/parameters.c
index 116e716..83602cb 100644
--- a/src/parameters/parameters.c
+++ b/src/parameters/parameters.c
@@ -176,7 +176,7 @@ static int set_options
{
param->use_ipv6 = 1;
}
- if
+ else if
(
JH_STRING_EQUALS("-c", argv[i])
|| JH_STRING_EQUALS("--print-chat", argv[i])
@@ -184,7 +184,7 @@ static int set_options
{
param->print_chat = 1;
}
- if
+ else if
(
JH_STRING_EQUALS("-i", argv[i])
|| JH_STRING_EQUALS("--print-additional-info", argv[i])