diff options
author | jamie <jamie@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-10-04 11:34:54 +0000 |
---|---|---|
committer | jamie <jamie@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-10-04 11:34:54 +0000 |
commit | f863be724f761b1b49123ef23bf546ec8e9d2695 (patch) | |
tree | dfb822b9252a213a59633d1dd47f25a77ceac4d6 /src/modules | |
parent | 136304ecccaf7856ad7a71f3af0e25d4264c182a (diff) |
Prepend ident with '~' if we get no response
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5408 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_ident.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
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() |