Fix a parenthesis ambiguity

This commit is contained in:
Florent Le Coz
2013-12-03 18:49:43 +01:00
parent 050cf1fd60
commit 6bd176f15e
+1 -1
View File
@@ -92,7 +92,7 @@ void IrcClient::send_message(IrcMessage&& message)
for (const std::string& arg: message.arguments) for (const std::string& arg: message.arguments)
{ {
if (arg.find(" ") != std::string::npos || if (arg.find(" ") != std::string::npos ||
(!arg.empty()) && arg[0] == ':') (!arg.empty() && arg[0] == ':'))
{ {
res += " :" + arg; res += " :" + arg;
break; break;