From 52cc8a418307ae7a551d23e6bd2d367b544e7bf9 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 7 Jan 2022 17:12:42 +0000 Subject: Refactor CoreException and ModuleException. --- src/commands.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/commands.cpp') diff --git a/src/commands.cpp b/src/commands.cpp index 5372c9995..4ad6ff2a9 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -53,7 +53,7 @@ Command::~Command() void Command::RegisterService() { if (!ServerInstance->Parser.AddCommand(this)) - throw ModuleException("Command already exists: " + name); + throw ModuleException(creator, "Command already exists: " + name); } void Command::TellNotEnoughParameters(LocalUser* user, const Params& parameters) -- cgit v1.3.1-10-gc9f91