Skip to content

Commit

Permalink
Missing slash in /rt command
Browse files Browse the repository at this point in the history
  • Loading branch information
nizikawa-worms committed Feb 3, 2022
1 parent b80ab5c commit 5131f8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RealTime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ void RealTime::setActive(bool active) {

int RealTime::onChatInput(std::vector<std::string> &parts) {
if(parts.size() >= 2) {
if(parts[0] == "/realtime" || parts[0] == "rt") {
if(parts[0] == "/realtime" || parts[0] == "/rt") {
if(parts[1] == "on") setActive(true);
else if(parts[1] == "off") setActive(false);
Chat::callShowChatMessage(std::format("Realtime: {}", isActive()), 6);
Expand Down

0 comments on commit 5131f8c

Please sign in to comment.