summaryrefslogtreecommitdiff
path: root/src/modules/m_globalload.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2021-01-19 07:19:48 +0000
committerSadie Powell <sadie@witchery.services>2021-01-19 07:19:48 +0000
commit28fef58b882e34369c935d56cb4ac50429cba8c7 (patch)
treed63802c899c7d1cadbf1890a70db07750f82de4c /src/modules/m_globalload.cpp
parent5fe9da839cc387244f9d34aececd6aa28f551c90 (diff)
Send ERR_CANTUNLOADMODULE when unloading a module on reload fails.
Diffstat (limited to 'src/modules/m_globalload.cpp')
-rw-r--r--src/modules/m_globalload.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_globalload.cpp b/src/modules/m_globalload.cpp
index f1961f6b4..15c41502f 100644
--- a/src/modules/m_globalload.cpp
+++ b/src/modules/m_globalload.cpp
@@ -143,7 +143,7 @@ class CommandGReloadModule : public Command
}
else
{
- user->WriteRemoteNumeric(RPL_LOADEDMODULE, parameters[0], "Could not find module by that name");
+ user->WriteRemoteNumeric(ERR_CANTUNLOADMODULE, parameters[0], "Could not find module by that name");
return CMD_FAILURE;
}
}