Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
louiz’
biboumi
Commits
4203384e
Commit
4203384e
authored
Jan 14, 2015
by
louiz’
Browse files
Do not send an empty password at all, if the user didn't provide one
parent
60569993
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/irc/irc_client.cpp
src/irc/irc_client.cpp
+2
-0
No files found.
src/irc/irc_client.cpp
View file @
4203384e
...
@@ -210,6 +210,8 @@ void IrcClient::send_join_command(const std::string& chan_name, const std::strin
...
@@ -210,6 +210,8 @@ void IrcClient::send_join_command(const std::string& chan_name, const std::strin
{
{
if
(
this
->
welcomed
==
false
)
if
(
this
->
welcomed
==
false
)
this
->
channels_to_join
.
emplace_back
(
chan_name
,
password
);
this
->
channels_to_join
.
emplace_back
(
chan_name
,
password
);
else
if
(
password
.
empty
())
this
->
send_message
(
IrcMessage
(
"JOIN"
,
{
chan_name
}));
else
else
this
->
send_message
(
IrcMessage
(
"JOIN"
,
{
chan_name
,
password
}));
this
->
send_message
(
IrcMessage
(
"JOIN"
,
{
chan_name
,
password
}));
this
->
start
();
this
->
start
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment