diff options
-rw-r--r-- | include/inspircd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/inspircd.h b/include/inspircd.h index 9c53fdf41..a1184a92a 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -66,6 +66,7 @@ template<typename T> inline void DELETE(T* x) */ template<typename T> inline std::string ConvNumeric(const T &in) { + if (in == 0) return "0"; char res[MAXBUF]; char* out = res; T quotient = in; |