diff options
author | Loren Burkholder <computersemiexpert@outlook.com> | 2023-02-23 21:57:53 -0500 |
---|---|---|
committer | Loren Burkholder <computersemiexpert@outlook.com> | 2023-02-28 20:10:25 -0500 |
commit | b6ef00b5ee14bd0adc85c3a98bb8a127f79932ea (patch) | |
tree | df09acee8f648cea85aa75bfcd43b6f247e8cc81 /src/timeline/InputBar.cpp | |
parent | Enhance appearance of room ping warning (diff) | |
download | nheko-b6ef00b5ee14bd0adc85c3a98bb8a127f79932ea.tar.xz |
Show warning when invalid command is entered
Fixes #1363 Please note that this doesn't prompt when you try to send a message with a bad command.
Diffstat (limited to 'src/timeline/InputBar.cpp')
-rw-r--r-- | src/timeline/InputBar.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/timeline/InputBar.cpp b/src/timeline/InputBar.cpp index 7d964bb5..5184ba94 100644 --- a/src/timeline/InputBar.cpp +++ b/src/timeline/InputBar.cpp @@ -846,6 +846,8 @@ InputBar::command(const QString &command, QString args) cache::getMembers(this->room->roomId().toStdString(), 0, -1)); } else if (command == QLatin1String("converttoroom")) { utils::removeDirectFromRoom(this->room->roomId()); + } else { + message("/" + command + " " + args); } } |