aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/misccommands.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-12-21 16:40:32 +0000
committerGravatar Sadie Powell2020-12-21 16:40:52 +0000
commita63b6e16df8c2764d3d054c125239d129582d9dc (patch)
treef31ef63e126c677bf178de90775f111b29b70071 /src/modules/m_spanningtree/misccommands.cpp
parentUse unicode box drawing characters in the /MAP output. (diff)
parentReplace 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.cpp6
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();
}