summaryrefslogtreecommitdiff
path: root/protocols/IRCG/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-03-22 19:30:26 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-03-22 19:30:26 +0300
commit0f1ce45c95c12dee77670058f364e4773ef1a565 (patch)
tree4aee692e72e2339db8532c89aacc3f1bd0af8c9d /protocols/IRCG/src
parent862e3c1f3b612d91251fc45fe16e681470f5e5b3 (diff)
fixes #1322 (IRC: list of dead IRC servers removed)
Diffstat (limited to 'protocols/IRCG/src')
-rw-r--r--protocols/IRCG/src/options.cpp15
-rw-r--r--protocols/IRCG/src/resource.h1
2 files changed, 0 insertions, 16 deletions
diff --git a/protocols/IRCG/src/options.cpp b/protocols/IRCG/src/options.cpp
index 820688af2c..4390e41d31 100644
--- a/protocols/IRCG/src/options.cpp
+++ b/protocols/IRCG/src/options.cpp
@@ -1815,19 +1815,4 @@ void InitServers()
mir_free(szTemp);
RereadServers();
-
- if (g_servers.getCount() == 0) {
- wchar_t *szIniFile = Utils_ReplaceVarsW(L"%temp%\\default_servers.ini");
- FILE *serverFile = _wfopen(szIniFile, L"a");
- if (serverFile) {
- char *pszSvrs = (char*)LockResource(LoadResource(g_plugin.getInst(), FindResource(g_plugin.getInst(), MAKEINTRESOURCE(IDR_SERVERS), L"TEXT")));
- if (pszSvrs)
- fwrite(pszSvrs, 1, mir_strlen(pszSvrs) + 1, serverFile);
- fclose(serverFile);
-
- sttImportIni(szIniFile);
- RereadServers();
- }
- mir_free(szIniFile);
- }
}
diff --git a/protocols/IRCG/src/resource.h b/protocols/IRCG/src/resource.h
index 6f21099b10..89630cf71d 100644
--- a/protocols/IRCG/src/resource.h
+++ b/protocols/IRCG/src/resource.h
@@ -35,7 +35,6 @@
#define IDI_RENAME 188
#define IDI_SERVER 189
#define IDI_DCC 196
-#define IDR_SERVERS 200
#define IDI_EDIT 201
#define IDI_IRCQUESTION 202
#define IDC_ENICK 1000