Fixed logic error for showing new topic set

master
Tomatix 5 years ago
parent 616bc37464
commit 67d303f533
  1. 4
      IdealIRC/IRC.cpp

@ -322,9 +322,9 @@ void IRC::onMsgTopic(const IRCPrefix& sender, const std::string& target, const s
if (!ignoreVerbosity(Command::IRC::TOPIC)) {
std::string msg;
if (topic.empty())
msg = fmt::format("{} set the topic to: {}", sender.toString(), topic);
msg = fmt::format("{} removed the topic", sender.toString());
else
msg = fmt::format("{} removed the topic", sender.toString());
msg = fmt::format("{} set the topic to: {}", sender.toString(), topic);
getStatus().printTo(target.c_str(), PrintType::Topic, msg.c_str());
auto subwin = MdiManager::instance().findWindow(&getStatus(), QString::fromStdString(target));
if (subwin)

Loading…
Cancel
Save