Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Commit

Permalink
Fixed Chatterino attempting to send empty messages in IRC (Chatterino…
Browse files Browse the repository at this point in the history
…#3355)

Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
  • Loading branch information
Mm2PL and pajlada committed Nov 20, 2021
1 parent 56f2207 commit b1e891b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions src/providers/irc/IrcChannel2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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("/"))
{
Expand Down

0 comments on commit b1e891b

Please sign in to comment.