From f863be724f761b1b49123ef23bf546ec8e9d2695 Mon Sep 17 00:00:00 2001 From: jamie Date: Wed, 4 Oct 2006 11:34:54 +0000 Subject: Prepend ident with '~' if we get no response git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5408 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_ident.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp index 53c13260f..a92249f84 100644 --- a/src/modules/m_ident.cpp +++ b/src/modules/m_ident.cpp @@ -52,9 +52,14 @@ class RFC1413 : public InspSocket // so we just display a notice, and tidy off the ident_data. if (u && (Instance->SE->GetRef(ufd) == u)) { + char *newident; + u->Shrink("ident_data"); - u->WriteServ("NOTICE "+std::string(u->nick)+" :*** Could not find your ident, using "+std::string(u->ident)+" instead."); - } + u->WriteServ("NOTICE "+std::string(u->nick)+" :*** Could not find your ident, using ~"+std::string(u->ident)+" instead."); + strcpy(newident,"~"); + strlcat(newident,u->ident,IDENTMAX); + strlcpy(u->ident,newident,IDENTMAX); + } } virtual bool OnDataReady() -- cgit v1.2.3