mirror of
https://github.com/znc/znc.git
synced 2026-08-07 01:13:25 +02:00
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:
+11
-4
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user