Pass the nick who send an invite with the OnInvite hook

This commit is contained in:
Kyle Fuller
2011-10-20 23:41:36 +00:00
parent 8cce595fbe
commit e11d338040
3 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -712,7 +712,7 @@ void CIRCSock::ReadLine(const CString& sData) {
// Don't forward any CAP stuff to the client
return;
} else if (sCmd.Equals("INVITE")) {
NETWORKMODULECALL(OnInvite(sLine.Token(3).TrimPrefix_n(":")), m_pNetwork->GetUser(), m_pNetwork, NULL, NOTHING);
NETWORKMODULECALL(OnInvite(Nick, sLine.Token(3).TrimPrefix_n(":")), m_pNetwork->GetUser(), m_pNetwork, NULL, NOTHING);
}
}