diff options
author | George Hazan <ghazan@miranda.im> | 2018-11-14 15:57:47 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-11-14 15:57:47 +0300 |
commit | a6b9f6570b4cb4a425f91d4694e6b027f12cc8b7 (patch) | |
tree | 86960597fbdc0025b12c4e87b8b536dd3d9910fb /plugins/HTTPServer/src/GuiElements.cpp | |
parent | 28b81bbed5d8db354349fd787c3db4123e55d423 (diff) |
hContact, MODULENAME -> g_plugin
Diffstat (limited to 'plugins/HTTPServer/src/GuiElements.cpp')
-rw-r--r-- | plugins/HTTPServer/src/GuiElements.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/HTTPServer/src/GuiElements.cpp b/plugins/HTTPServer/src/GuiElements.cpp index 2d0bb6771b..bf3690caa8 100644 --- a/plugins/HTTPServer/src/GuiElements.cpp +++ b/plugins/HTTPServer/src/GuiElements.cpp @@ -1011,11 +1011,11 @@ static INT_PTR nShareNewFile(WPARAM hContact, LPARAM lParam) if (!stNewShare.dwAllowedIP)
stNewShare.dwAllowedIP = db_get_dw(hContact, dbv.pszVal, "RealIP", 0);
if (!stNewShare.dwAllowedIP)
- stNewShare.dwAllowedIP = db_get_dw(hContact, MODULENAME, "LastUsedIP", 0);
+ stNewShare.dwAllowedIP = g_plugin.getDword(hContact, "LastUsedIP", 0);
}
db_free(&dbv);
- stNewShare.dwAllowedMask = db_get_dw(hContact, MODULENAME, "LastUsedMask", 0);
+ stNewShare.dwAllowedMask = g_plugin.getDword(hContact, "LastUsedMask", 0);
}
if (!stNewShare.dwAllowedMask) {
@@ -1029,14 +1029,14 @@ static INT_PTR nShareNewFile(WPARAM hContact, LPARAM lParam) return 0;
if (stNewShare.dwAllowedIP)
- db_set_dw(hContact, MODULENAME, "LastUsedIP", stNewShare.dwAllowedIP);
+ g_plugin.setDword(hContact, "LastUsedIP", stNewShare.dwAllowedIP);
else
- db_unset(hContact, MODULENAME, "LastUsedIP");
+ g_plugin.delSetting(hContact, "LastUsedIP");
if (stNewShare.dwAllowedMask && stNewShare.dwAllowedMask != 0xFFFFFFFF)
- db_set_dw(hContact, MODULENAME, "LastUsedMask", stNewShare.dwAllowedMask);
+ g_plugin.setDword(hContact, "LastUsedMask", stNewShare.dwAllowedMask);
else
- db_unset(hContact, MODULENAME, "LastUsedMask");
+ g_plugin.delSetting(hContact, "LastUsedMask");
SendLinkToUser(hContact, stNewShare.pszSrvPath);
return 0;
|