From 09f5312e127889f2ac674ebc85b801bc864fd2d1 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 19 May 2008 18:23:30 +0000 Subject: Fix crash i introduced into m_ident with a sloppy ->insert() git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9766 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_ident.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules') diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp index a9ea8c06e..e7d8728d6 100644 --- a/src/modules/m_ident.cpp +++ b/src/modules/m_ident.cpp @@ -369,7 +369,7 @@ class ModuleIdent : public Module * should be preceded by a ~. The field is actually IDENTMAX+2 characters wide. */ if (user->ident.length() > IDENTMAX + 1) user->ident.assign(user->ident, 0, IDENTMAX); - user->ident.insert('~', 0); + user->ident.insert(0, "~"); user->WriteServ("NOTICE Auth :*** Looking up your ident..."); -- cgit v1.2.3