diff options
| author | 2020-12-21 16:40:32 +0000 | |
|---|---|---|
| committer | 2020-12-21 16:40:52 +0000 | |
| commit | a63b6e16df8c2764d3d054c125239d129582d9dc (patch) | |
| tree | f31ef63e126c677bf178de90775f111b29b70071 /src/modules/m_spanningtree/misccommands.cpp | |
| parent | Use unicode box drawing characters in the /MAP output. (diff) | |
| parent | Replace the SERVER stub command with something actually useful. (diff) | |
Merge branch 'insp3' into master.
Diffstat (limited to 'src/modules/m_spanningtree/misccommands.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/misccommands.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree/misccommands.cpp b/src/modules/m_spanningtree/misccommands.cpp index abf4b792b..95a479f3d 100644 --- a/src/modules/m_spanningtree/misccommands.cpp +++ b/src/modules/m_spanningtree/misccommands.cpp @@ -26,12 +26,18 @@ void CmdBuilder::FireEvent(Server* target, const char* cmd, ClientProtocol::TagMap& taglist) { + if (!Utils->Creator || Utils->Creator->dying) + return; + Utils->Creator->GetMessageEventProvider().Call(&ServerProtocol::MessageEventListener::OnBuildServerMessage, target, cmd, taglist); UpdateTags(); } void CmdBuilder::FireEvent(User* target, const char* cmd, ClientProtocol::TagMap& taglist) { + if (!Utils->Creator || Utils->Creator->dying) + return; + Utils->Creator->GetMessageEventProvider().Call(&ServerProtocol::MessageEventListener::OnBuildUserMessage, target, cmd, taglist); UpdateTags(); } |
