Added OnIRCRegistration(). Patch from Freman. Thanks :)

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1271 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
silverleo
2008-11-24 17:56:34 +00:00
parent f4e36a0b17
commit c71565103c
5 changed files with 24 additions and 4 deletions
+11 -4
View File
@@ -805,12 +805,19 @@ void CIRCSock::Connected() {
DEBUG_ONLY(cout << GetSockName() << " == Connected()" << endl);
m_pUser->IRCConnected(this);
if (!m_sPass.empty()) {
PutIRC("PASS " + m_sPass);
CString sPass = m_sPass;
CString sNick = m_pUser->GetNick();
CString sIdent = m_pUser->GetIdent();
CString sRealName = m_pUser->GetRealName();
MODULECALL(OnIRCRegistration(sPass, sNick, sIdent, sRealName), m_pUser, NULL, return);
if (!sPass.empty()) {
PutIRC("PASS " + sPass);
}
PutIRC("NICK " + m_pUser->GetNick());
PutIRC("USER " + m_pUser->GetIdent() + " \"" + m_pUser->GetIdent() + "\" \"" + m_pUser->GetIdent() + "\" :" + m_pUser->GetRealName());
PutIRC("NICK " + sNick);
PutIRC("USER " + sIdent + " \"" + sIdent + "\" \"" + sIdent + "\" :" + sRealName);
}
void CIRCSock::Disconnected() {