diff options
author | Sadie Powell <sadie@witchery.services> | 2020-02-02 17:07:34 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-02-02 20:32:49 +0000 |
commit | aed712ba8e087232fcd9f71db4311687a7ce4398 (patch) | |
tree | fe06900c63293fabab60faf863bf97a390a0df20 /src/coremods | |
parent | fda43fc0ff5ecf87d877cc341961c9da4affae76 (diff) |
Make loading modules considerably more robust and user friendly.
Diffstat (limited to 'src/coremods')
-rw-r--r-- | src/coremods/core_info/cmd_modules.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/coremods/core_info/cmd_modules.cpp b/src/coremods/core_info/cmd_modules.cpp index 7c9e49550..7936a34d7 100644 --- a/src/coremods/core_info/cmd_modules.cpp +++ b/src/coremods/core_info/cmd_modules.cpp @@ -76,8 +76,8 @@ CmdResult CommandModules::Handle(User* user, const Params& parameters) if (!(V.Flags & mult)) flags[pos] = '-'; - std::string srcrev = m->ModuleDLLManager->GetVersion(); - user->WriteRemoteNumeric(RPL_MODLIST, m->ModuleSourceFile, srcrev.empty() ? "*" : srcrev, flags, V.description); + const char* srcrev = m->ModuleDLLManager->GetVersion(); + user->WriteRemoteNumeric(RPL_MODLIST, m->ModuleSourceFile, srcrev ? "*" : srcrev, flags, V.description); } else { |