Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "User.h"
- class CCGIIRC : public CModule {
- private:
- CString cgipass;
- CString cgihost;
- CString cgiip;
- CString m_pUser;
- CString sPass;
- CString sNick;
- CString sIdent;
- Cstring sRealName;
- public:
- MODCONSTRUCTOR(CCGIIRC)
- {
- const
- }
- virtual ~CCGIIRC()
- {
- }
- virtual bool OnLoad(const CString& sArgs, CString& sMessage)
- {
- cgipass = GetNV("cgipass");
- cgihost = GetNV("cgihost");
- cgiip = GetNV("cgiip");
- m_pUser = pUser;
- sPass = m_sPass;
- sNick = m_pUser->GetNick();
- sIdent = m_pUser->GetIdent();
- sRealName = m_pUser->GetRealName();
- }
- virtual EModRet OnIRCRegistration(CString& sPass, CString& sNick, CString& sIdent, CString& sRealName) {
- PutIRC("WEBIRC " + cgipass + " cgiirc " + m_pUser->GetUserName() + "." + cgihost + " " + cgiip);
- }
- }
- };
- MODULEDEFS(CCGIIRC, "Connects using CGI:IRC so each user has thier own hostname according to thier username.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement