summaryrefslogtreecommitdiff
path: root/src/misc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc.cpp')
-rw-r--r--src/misc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc.cpp b/src/misc.cpp
index a835c8e41..72e991249 100644
--- a/src/misc.cpp
+++ b/src/misc.cpp
@@ -1317,7 +1317,7 @@ void Anope::Unhex(const Anope::string &src, char *dest)
const Anope::string Anope::LastError()
{
#ifndef _WIN32
- return LastError();
+ return strerror(errno);
#else
char errbuf[513];
DWORD err = GetLastError();