//mode with no argument should work

The server will respond with the current channel mode, in private or
something
This commit is contained in:
Florent Le Coz
2015-08-19 21:22:46 +02:00
parent 525f452cbc
commit df006a1916
+2 -2
View File
@@ -181,9 +181,9 @@ void Bridge::send_channel_message(const Iid& iid, const std::string& body)
return ; return ;
for (const std::string& line: lines) for (const std::string& line: lines)
{ {
if (line.substr(0, 6) == "/mode ") if (line.substr(0, 5) == "/mode")
{ {
std::vector<std::string> args = utils::split(line.substr(6), ' ', false); std::vector<std::string> args = utils::split(line.substr(5), ' ', false);
irc->send_mode_command(iid.get_local(), args); irc->send_mode_command(iid.get_local(), args);
continue; // We do not want to send that back to the continue; // We do not want to send that back to the
// XMPP user, that’s not a textual message. // XMPP user, that’s not a textual message.