diff --git a/modules/irc/Module.cpp b/modules/irc/Module.cpp index a090aa70..3ab13766 100644 --- a/modules/irc/Module.cpp +++ b/modules/irc/Module.cpp @@ -226,29 +226,9 @@ void RegisterAPI(HSQUIRRELVM vm) .Prop(_SC("CtcpVersion"), (void (Session::*)(void))(nullptr), &Session::SetCtcpVersion) .Prop(_SC("ErrNo"), &Session::GetErrNo) .Prop(_SC("ErrStr"), &Session::GetErrStr) - .Prop(_SC("OnConnect"), &Session::GetOnConnect) - .Prop(_SC("OnNick"), &Session::GetOnNick) - .Prop(_SC("OnQuit"), &Session::GetOnQuit) - .Prop(_SC("OnJoin"), &Session::GetOnJoin) - .Prop(_SC("OnPart"), &Session::GetOnPart) - .Prop(_SC("OnMode"), &Session::GetOnMode) - .Prop(_SC("OnUmode"), &Session::GetOnUmode) - .Prop(_SC("OnTopic"), &Session::GetOnTopic) - .Prop(_SC("OnKick"), &Session::GetOnKick) - .Prop(_SC("OnChannel"), &Session::GetOnChannel) - .Prop(_SC("OnPrivMsg"), &Session::GetOnPrivMsg) - .Prop(_SC("OnNotice"), &Session::GetOnNotice) - .Prop(_SC("OnChannelNotice"), &Session::GetOnChannelNotice) - .Prop(_SC("OnInvite"), &Session::GetOnInvite) - .Prop(_SC("OnCtcpReq"), &Session::GetOnCtcpReq) - .Prop(_SC("OnCtcpRep"), &Session::GetOnCtcpRep) - .Prop(_SC("OnCtcpAction"), &Session::GetOnCtcpAction) - .Prop(_SC("OnUnknown"), &Session::GetOnUnknown) - .Prop(_SC("OnNumeric"), &Session::GetOnNumeric) - .Prop(_SC("OnDccChatReq"), &Session::GetOnDccChatReq) - .Prop(_SC("OnDccSendReq"), &Session::GetOnDccSendReq) // Member Methods .Func(_SC("Bind"), &Session::BindEvent) + .Func(_SC("GetEvent"), &Session::GetEvent) .Func(_SC("Disconnect"), &Session::Disconnect) .Func(_SC("CmdPart"), &Session::CmdPart) .Func(_SC("CmdInvite"), &Session::CmdInvite) diff --git a/modules/irc/Session.hpp b/modules/irc/Session.hpp index 7ad6bb3d..155b7556 100644 --- a/modules/irc/Session.hpp +++ b/modules/irc/Session.hpp @@ -1053,176 +1053,6 @@ protected: * ... */ static void OnDccSendReq(irc_session_t * session, CCStr nick, CCStr addr, CCStr filename, Ulong size, irc_dcc_t dccid); - -public: - - /* -------------------------------------------------------------------------------------------- - * ... - */ - Function & GetOnConnect() - { - return m_OnConnect; - } - - /* -------------------------------------------------------------------------------------------- - * ... - */ - Function & GetOnNick() - { - return m_OnNick; - } - - /* -------------------------------------------------------------------------------------------- - * ... - */ - Function & GetOnQuit() - { - return m_OnQuit; - } - - /* -------------------------------------------------------------------------------------------- - * ... - */ - Function & GetOnJoin() - { - return m_OnJoin; - } - - /* -------------------------------------------------------------------------------------------- - * ... - */ - Function & GetOnPart() - { - return m_OnPart; - } - - /* -------------------------------------------------------------------------------------------- - * ... - */ - Function & GetOnMode() - { - return m_OnMode; - } - - /* -------------------------------------------------------------------------------------------- - * ... - */ - Function & GetOnUmode() - { - return m_OnUmode; - } - - /* -------------------------------------------------------------------------------------------- - * ... - */ - Function & GetOnTopic() - { - return m_OnTopic; - } - - /* -------------------------------------------------------------------------------------------- - * ... - */ - Function & GetOnKick() - { - return m_OnKick; - } - - /* -------------------------------------------------------------------------------------------- - * ... - */ - Function & GetOnChannel() - { - return m_OnChannel; - } - - /* -------------------------------------------------------------------------------------------- - * ... - */ - Function & GetOnPrivMsg() - { - return m_OnPrivMsg; - } - - /* -------------------------------------------------------------------------------------------- - * ... - */ - Function & GetOnNotice() - { - return m_OnNotice; - } - - /* -------------------------------------------------------------------------------------------- - * ... - */ - Function & GetOnChannelNotice() - { - return m_OnChannelNotice; - } - - /* -------------------------------------------------------------------------------------------- - * ... - */ - Function & GetOnInvite() - { - return m_OnInvite; - } - - /* -------------------------------------------------------------------------------------------- - * ... - */ - Function & GetOnCtcpReq() - { - return m_OnCtcpReq; - } - - /* -------------------------------------------------------------------------------------------- - * ... - */ - Function & GetOnCtcpRep() - { - return m_OnCtcpRep; - } - - /* -------------------------------------------------------------------------------------------- - * ... - */ - Function & GetOnCtcpAction() - { - return m_OnCtcpAction; - } - - /* -------------------------------------------------------------------------------------------- - * ... - */ - Function & GetOnUnknown() - { - return m_OnUnknown; - } - - /* -------------------------------------------------------------------------------------------- - * ... - */ - Function & GetOnNumeric() - { - return m_OnNumeric; - } - - /* -------------------------------------------------------------------------------------------- - * ... - */ - Function & GetOnDccChatReq() - { - return m_OnDccChatReq; - } - - /* -------------------------------------------------------------------------------------------- - * ... - */ - Function & GetOnDccSendReq() - { - return m_OnDccSendReq; - } }; } // Namespace:: SqMod