summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/modules.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/modules.h b/include/modules.h
index 2bf16477b..2592b5622 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -26,7 +26,7 @@
# define dlsym(file, symbol) (HMODULE)GetProcAddress(file, symbol)
# define dlclose(file) FreeLibrary(file) ? 0 : 1
# define ano_modclearerr() SetLastError(0)
-# define ano_moderr() Anope::LastError().c_str()
+# define ano_moderr() (Anope::LastError().empty() ? NULL : Anope::LastError().c_str())
#else
typedef void * ano_module_t;