summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-09 04:15:10 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-09 04:15:10 +0000
commitf1d7e1e544be66cd0e7108d38e438cb0c9234b46 (patch)
treeb8c4647f0a5e25ce0afa5b9fdc8c1d697f084b8c /include
parentd3472e07a113dff34c2d9283c83ffff3fb570f78 (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/inspircd.h1
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;