]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Have ConvNumeric correctly convert 0 to 0 instead of an empty string.
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 9 Jan 2007 04:15:10 +0000 (04:15 +0000)
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 9 Jan 2007 04:15:10 +0000 (04:15 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6278 e03df62e-2008-0410-955e-edbf42e46eb7

include/inspircd.h

index 9c53fdf41013f96e879cbbbf4d7e9892e556e194..a1184a92ab13068a70948339e71cf75181c29322 100644 (file)
@@ -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;