diff --git a/CHANGELOG.md b/CHANGELOG.md index ba63780f8..5b7b3cf9d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -56,6 +56,7 @@ - Bugfix: Fixed IRC ACTION messages (/me) not being colorized properly. (#3341) - Bugfix: Fixed splits losing filters when closing and reopening them (#3351) - Bugfix: Fixed the first usercard being broken in `/mods` and `/vips` (#3349) +- Bugfix: Fixed Chatterino attempting to send empty messages (#3355) - Dev: Add GitHub action to test builds without precompiled headers enabled. (#3327) - Dev: Renamed CMake's build option `USE_SYSTEM_QT5KEYCHAIN` to `USE_SYSTEM_QTKEYCHAIN`. (#3103) - Dev: Add benchmarks that can be compiled with the `BUILD_BENCHMARKS` CMake flag. Off by default. (#3038) diff --git a/src/providers/irc/IrcChannel2.cpp b/src/providers/irc/IrcChannel2.cpp index 940a74410..123ae738d 100644 --- a/src/providers/irc/IrcChannel2.cpp +++ b/src/providers/irc/IrcChannel2.cpp @@ -18,6 +18,10 @@ IrcChannel::IrcChannel(const QString &name, IrcServer *server) void IrcChannel::sendMessage(const QString &message) { assertInGuiThread(); + if (message.isEmpty()) + { + return; + } if (message.startsWith("/")) {