diff --git a/Modules.cpp b/Modules.cpp index a765df97..68668e17 100644 --- a/Modules.cpp +++ b/Modules.cpp @@ -133,6 +133,25 @@ bool CSocket::Listen(unsigned short uPort, bool bSSL, unsigned int uTimeout) { return m_pModule->GetManager()->ListenAll(uPort, sSockName, bSSL, SOMAXCONN, (Csock*) this); } +bool CSocket::PutIRC(const CString& sLine) { + return (m_pModule) ? m_pModule->PutIRC(sLine) : false; +} + +bool CSocket::PutUser(const CString& sLine) { + return (m_pModule) ? m_pModule->PutUser(sLine) : false; +} + +bool CSocket::PutStatus(const CString& sLine) { + return (m_pModule) ? m_pModule->PutStatus(sLine) : false; +} + +bool CSocket::PutModule(const CString& sLine, const CString& sIdent, const CString& sHost) { + return (m_pModule) ? m_pModule->PutModule(sLine, sIdent, sHost) : false; +} +bool CSocket::PutModNotice(const CString& sLine, const CString& sIdent, const CString& sHost) { + return (m_pModule) ? m_pModule->PutModNotice(sLine, sIdent, sHost) : false; +} + void CSocket::SetModule(CModule* p) { m_pModule = p; } void CSocket::SetLabel(const CString& s) { m_sLabel = s; } diff --git a/Modules.h b/Modules.h index eba082ce..0af454d4 100644 --- a/Modules.h +++ b/Modules.h @@ -104,6 +104,11 @@ public: bool Connect(const CString& sHostname, unsigned short uPort, bool bSSL = false, unsigned int uTimeout = 60); bool Listen(unsigned short uPort, bool bSSL = false, unsigned int uTimeout = 0); + virtual bool PutIRC(const CString& sLine); + virtual bool PutUser(const CString& sLine); + virtual bool PutStatus(const CString& sLine); + virtual bool PutModule(const CString& sLine, const CString& sIdent = "znc", const CString& sHost = "znc.com"); + virtual bool PutModNotice(const CString& sLine, const CString& sIdent = "znc", const CString& sHost = "znc.com"); // Setters void SetModule(CModule* p);