diff options
author | Florent Le Coz <louiz@louiz.org> | 2015-08-19 21:21:42 +0200 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2015-08-19 21:22:46 +0200 |
commit | df006a191603c4a9f0bb364affa3731c2944fef5 (patch) | |
tree | dda65693e0731bf7080dee46defb7e857b8446d2 /src | |
parent | 525f452cbca1741112dbfd830998eb4dd79bdd3d (diff) | |
download | biboumi-df006a191603c4a9f0bb364affa3731c2944fef5.tar.gz biboumi-df006a191603c4a9f0bb364affa3731c2944fef5.tar.bz2 biboumi-df006a191603c4a9f0bb364affa3731c2944fef5.tar.xz biboumi-df006a191603c4a9f0bb364affa3731c2944fef5.zip |
//mode with no argument should work
The server will respond with the current channel mode, in private or
something
Diffstat (limited to 'src')
-rw-r--r-- | src/bridge/bridge.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bridge/bridge.cpp b/src/bridge/bridge.cpp index c63b3da..1d46e07 100644 --- a/src/bridge/bridge.cpp +++ b/src/bridge/bridge.cpp @@ -181,9 +181,9 @@ void Bridge::send_channel_message(const Iid& iid, const std::string& body) return ; 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); continue; // We do not want to send that back to the // XMPP user, that’s not a textual message. |