From 7aceb1ee79875519203043b8215fe73b8b503f40 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 15 Jul 2023 10:44:08 +0100 Subject: If a watched user appears whilst away then also send RPL_GONEAWAY. --- src/modules/m_watch.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/modules/m_watch.cpp') diff --git a/src/modules/m_watch.cpp b/src/modules/m_watch.cpp index 803bd2c40..433225fed 100644 --- a/src/modules/m_watch.cpp +++ b/src/modules/m_watch.cpp @@ -207,6 +207,8 @@ class ModuleWatch void Online(User* user) { SendAlert(user, user->nick, RPL_LOGON, "arrived online", user->age); + if (!user->awaymsg.empty()) + OnUserAway(user); } void Offline(User* user, const std::string& nick) -- cgit v1.3.1-10-gc9f91