summaryrefslogtreecommitdiff
path: root/src/mir_app
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-11-26 15:23:19 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-11-26 15:23:19 +0300
commitda1b2a070c113222cbbad31b18ab704c7d1301b2 (patch)
tree841092328c9c7fb35c3454627296862a956f5d5c /src/mir_app
parentbe1918c1b2986ddb387cd593deddf120f9e61874 (diff)
Chat_AddGroup - simplified prototype
Diffstat (limited to 'src/mir_app')
-rw-r--r--src/mir_app/src/chat_svc.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mir_app/src/chat_svc.cpp b/src/mir_app/src/chat_svc.cpp
index 7e76a5f41f..b5e1522cbd 100644
--- a/src/mir_app/src/chat_svc.cpp
+++ b/src/mir_app/src/chat_svc.cpp
@@ -575,16 +575,14 @@ EXTERN_C MIR_APP_DLL(int) Chat_Event(GCEVENT *gce)
/////////////////////////////////////////////////////////////////////////////////////////
// chat control functions
-MIR_APP_DLL(int) Chat_AddGroup(const char *szModule, const wchar_t *wszId, const wchar_t *wszText)
+MIR_APP_DLL(int) Chat_AddGroup(SESSION_INFO *si, const wchar_t *wszText)
{
if (wszText == nullptr)
return GC_EVENT_ERROR;
-
- mir_cslock lck(csChat);
- SESSION_INFO *si = SM_FindSession(wszId, szModule);
if (si == nullptr)
return 0;
+ mir_cslock lck(csChat);
STATUSINFO *ti = TM_AddStatus(&si->pStatuses, wszText, &si->iStatusCount);
if (ti)
si->iStatusCount++;