diff options
author | George Hazan <ghazan@miranda.im> | 2023-01-25 18:34:51 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2023-01-25 18:34:51 +0300 |
commit | 9885bf54f788e831a80c76001340aa68d31d2aaa (patch) | |
tree | 420ab4aa5bf868d4193c965668ae68e5855093b7 /protocols/IRCG | |
parent | c9d99d1525e2e9374ed0fa10837e82e76c3b9216 (diff) |
Group chats: ChatRoomID setting replaced with real protocol id
Diffstat (limited to 'protocols/IRCG')
-rw-r--r-- | protocols/IRCG/src/ircproto.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/protocols/IRCG/src/ircproto.cpp b/protocols/IRCG/src/ircproto.cpp index e64a3b420e..95b233d8dc 100644 --- a/protocols/IRCG/src/ircproto.cpp +++ b/protocols/IRCG/src/ircproto.cpp @@ -195,7 +195,7 @@ void CIrcProto::OnModulesLoaded() ptrA szNetwork(getStringA("Network"));
if (szNetwork) {
- CMStringA szSetting(FORMAT, "PERFORM:%s", szNetwork);
+ CMStringA szSetting(FORMAT, "PERFORM:%s", szNetwork.get());
szSetting.MakeUpper();
CMStringW wszValue(getMStringW(szSetting));
@@ -206,18 +206,6 @@ void CIrcProto::OnModulesLoaded() delSetting("Network");
}
- if (getByte("CompatibilityLevel") < 1) {
- for (auto &cc : AccContacts()) {
- CMStringW chatId(getMStringW(cc, "ChatRoomID"));
- int idx = chatId.Find(L" - ");
- if (idx != -1) {
- chatId.Truncate(idx);
- setWString(cc, "ChatRoomID", chatId);
- }
- }
- setByte("CompatibilityLevel", 1);
- }
-
InitIgnore();
HookProtoEvent(ME_USERINFO_INITIALISE, &CIrcProto::OnInitUserInfo);
|