summaryrefslogtreecommitdiff
path: root/protocols/IRCG/src/ircproto.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/IRCG/src/ircproto.cpp')
-rw-r--r--protocols/IRCG/src/ircproto.cpp14
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);