From 87bba3d377a99fef1e22a96a8ac403c9aad6efbd Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 3 Apr 2005 21:26:22 +0000 Subject: More secure checking in 005 handlers git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@968 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_services.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/modules/m_services.cpp') diff --git a/src/modules/m_services.cpp b/src/modules/m_services.cpp index d3e9066e8..801ab1fd9 100644 --- a/src/modules/m_services.cpp +++ b/src/modules/m_services.cpp @@ -53,7 +53,8 @@ class ModuleServices : public Module } temp2 = temp2 + temp1 + " "; } - output = temp2.substr(0,temp2.length()-1); + if (temp2.length()) + output = temp2.substr(0,temp2.length()-1); } virtual int OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list ¶ms) -- cgit v1.2.3