aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_helpmode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_helpmode.cpp')
-rw-r--r--src/modules/m_helpmode.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/m_helpmode.cpp b/src/modules/m_helpmode.cpp
index 32a69f59b..5554cba15 100644
--- a/src/modules/m_helpmode.cpp
+++ b/src/modules/m_helpmode.cpp
@@ -114,6 +114,12 @@ public:
return MOD_RES_PASSTHRU;
}
+ void OnUserQuit(User* user, const std::string& message, const std::string& opermessage) override
+ {
+ if (user->IsModeSet(helpop))
+ stdalgo::erase(helpop.helpers, user);
+ }
+
void OnWhois(Whois::Context& whois) override
{
if (whois.GetTarget()->IsModeSet(helpop))