Add OnNumericMessage() module hook (close #1069)

This commit is contained in:
J-P Nurmi
2015-09-07 16:41:15 +02:00
parent d6a94936b9
commit ba76e041b9
5 changed files with 37 additions and 0 deletions
+4
View File
@@ -652,6 +652,10 @@ bool CIRCSock::OnNumericMessage(CNumericMessage& Message) {
CString sRest = Message.GetParams(1);
CString sTmp;
bool bResult = false;
IRCSOCKMODULECALL(OnNumericMessage(Message), &bResult);
if (bResult) return true;
switch (uRaw) {
case 1: { // :irc.server.com 001 nick :Welcome to the Internet Relay Network nick
if (m_bAuthed && sServer == "irc.znc.in") {