|
|
|
@ -787,17 +787,19 @@ void IRC::onMsgDCCRequest(std::shared_ptr<DCC> dcc, const IRCPrefix& sender, con |
|
|
|
|
|
|
|
|
|
void IRC::v3onMsgAway(const IRCPrefix& sender, const std::string& message, const std::vector<std::string>& channelsAffected) |
|
|
|
|
{ |
|
|
|
|
std::string msg; |
|
|
|
|
if (message.empty()) |
|
|
|
|
msg = fmt::format("{} is no longer away", sender.nickname(), message); |
|
|
|
|
else |
|
|
|
|
msg = fmt::format("{} is now away: {}", sender.nickname(), message); |
|
|
|
|
if (!ignoreVerbosity(Command::IRC::AWAY)) { |
|
|
|
|
std::string msg; |
|
|
|
|
if (message.empty()) |
|
|
|
|
msg = fmt::format("{} is no longer away", sender.nickname(), message); |
|
|
|
|
else |
|
|
|
|
msg = fmt::format("{} is now away: {}", sender.nickname(), message); |
|
|
|
|
|
|
|
|
|
if (channelsAffected.empty()) |
|
|
|
|
getStatus().print(PrintType::ServerInfo, msg.c_str()); |
|
|
|
|
if (channelsAffected.empty()) |
|
|
|
|
getStatus().print(PrintType::ServerInfo, msg.c_str()); |
|
|
|
|
|
|
|
|
|
for (const auto& channel : channelsAffected) |
|
|
|
|
getStatus().printTo(channel.c_str(), PrintType::ServerInfo, msg.c_str()); |
|
|
|
|
for (const auto& channel : channelsAffected) |
|
|
|
|
getStatus().printTo(channel.c_str(), PrintType::ServerInfo, msg.c_str()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void IRC::v3onMsgJoin(const IRCPrefix& sender, const std::string& channel, const std::string& useraccount, const std::string& realname) |
|
|
|
|