From f1d7e1e544be66cd0e7108d38e438cb0c9234b46 Mon Sep 17 00:00:00 2001 From: peavey Date: Tue, 9 Jan 2007 04:15:10 +0000 Subject: Have ConvNumeric correctly convert 0 to 0 instead of an empty string. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6278 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/inspircd.h | 1 + 1 file changed, 1 insertion(+) 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 inline void DELETE(T* x) */ template inline std::string ConvNumeric(const T &in) { + if (in == 0) return "0"; char res[MAXBUF]; char* out = res; T quotient = in; -- cgit v1.2.3