diff options
| author | 2024-03-31 22:56:11 +0100 | |
|---|---|---|
| committer | 2024-03-31 22:56:11 +0100 | |
| commit | c9d225a6d28fd9971aa5a3630e11e77b5371d15a (patch) | |
| tree | 919fe80bb5611d6333bbeed4ea2501477c2c40c0 /src/modules/m_helpmode.cpp | |
| parent | Only abort SASL sessions if the user is using sasl-3.1. (diff) | |
Fix a crash in the helpmode module.
Diffstat (limited to 'src/modules/m_helpmode.cpp')
| -rw-r--r-- | src/modules/m_helpmode.cpp | 6 |
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)) |
