diff options
Diffstat (limited to 'protocols/Omegle/src/proto.cpp')
| -rw-r--r-- | protocols/Omegle/src/proto.cpp | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/protocols/Omegle/src/proto.cpp b/protocols/Omegle/src/proto.cpp index 1ea0e17332..eee9e19127 100644 --- a/protocols/Omegle/src/proto.cpp +++ b/protocols/Omegle/src/proto.cpp @@ -61,6 +61,14 @@ OmegleProto::OmegleProto(const char* proto_name, const wchar_t* username) : g_plugin.addSound("StrangerTypStop", m_tszUserName, LPGENW("Stranger stopped typing"));
g_plugin.addSound("StrangerChange", m_tszUserName, LPGENW("Changing stranger"));
g_plugin.addSound("StrangerMessage", m_tszUserName, LPGENW("Receive message"));
+
+ // Register group chat
+ GCREGISTER gcr = {};
+ gcr.dwFlags = 0; //GC_TYPNOTIF; //GC_ACKMSG;
+ gcr.pszModule = m_szModuleName;
+ gcr.ptszDispName = m_tszUserName;
+ gcr.iMaxText = OMEGLE_MESSAGE_LIMIT;
+ Chat_Register(&gcr);
}
OmegleProto::~OmegleProto()
@@ -136,17 +144,6 @@ INT_PTR OmegleProto::SvcCreateAccMgrUI(WPARAM, LPARAM lParam) (HWND)lParam, OmegleAccountProc, (LPARAM)this);
}
-void OmegleProto::OnModulesLoaded()
-{
- // Register group chat
- GCREGISTER gcr = {};
- gcr.dwFlags = 0; //GC_TYPNOTIF; //GC_ACKMSG;
- gcr.pszModule = m_szModuleName;
- gcr.ptszDispName = m_tszUserName;
- gcr.iMaxText = OMEGLE_MESSAGE_LIMIT;
- Chat_Register(&gcr);
-}
-
void OmegleProto::OnShutdown()
{
SetStatus(ID_STATUS_OFFLINE);
|
