|
|
|
@ -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) |
|
|
|
|