summaryrefslogtreecommitdiff
path: root/protocols/MRA/src/Mra_svcs.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-09-07 16:36:19 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-09-07 16:36:19 +0000
commit65da02c676e7a6f232de27f0edefc73ba02dafb9 (patch)
treefbbcf58f8709733e3b8601bb3d8a37acf2524001 /protocols/MRA/src/Mra_svcs.cpp
parent61038ead217a3342a3e98500d30976b301acfee1 (diff)
- server group to be removed when local one is deleted
- unused stuff removed git-svn-id: http://svn.miranda-ng.org/main/trunk@6002 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MRA/src/Mra_svcs.cpp')
-rw-r--r--protocols/MRA/src/Mra_svcs.cpp24
1 files changed, 17 insertions, 7 deletions
diff --git a/protocols/MRA/src/Mra_svcs.cpp b/protocols/MRA/src/Mra_svcs.cpp
index bcb5a4a65b..aded6d16b4 100644
--- a/protocols/MRA/src/Mra_svcs.cpp
+++ b/protocols/MRA/src/Mra_svcs.cpp
@@ -950,14 +950,24 @@ INT_PTR CMraProto::MraGetMyAvatar(WPARAM wParam, LPARAM lParam)
}
////////////////////////////////////////////////////////////////////////////////////////////////
+// processes clist group removal
-INT_PTR LoadModules(void)
+int CMraProto::OnGroupChanged(WPARAM wParam, LPARAM lParam)
{
- DebugPrintCRLFW(L"MRA/LoadModules - DONE");
+ HANDLE hContact = (HANDLE)wParam;
+ if (hContact == NULL) {
+ CLISTGROUPCHANGE *cgc = (CLISTGROUPCHANGE*)lParam;
+ if (cgc->pszOldName != NULL && cgc->pszNewName == NULL) {
+ for (int i=0; i < m_groups.getCount(); i++) {
+ MraGroupItem &p = m_groups[i];
+ if ( _tcscmp(p.m_name, cgc->pszOldName))
+ continue;
+
+ CMStringA szName = p.m_name;
+ DWORD dwFlags = CONTACT_FLAG_GROUP | CONTACT_FLAG_REMOVED;
+ MraModifyContact(NULL, &p.m_id, &dwFlags, 0, &szName, &p.m_name);
+ }
+ }
+ }
return 0;
}
-
-void UnloadModules()
-{
- DebugPrintCRLFW(L"MRA/UnloadModules - DONE");
-}