diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-11-04 23:02:33 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-11-04 23:02:33 +0000 |
commit | 4d20a570abd72490d7a230e5dfcb355ef4f4510a (patch) | |
tree | 527ff296be44927067f76f1f6810553adb9f9feb /protocols/MinecraftDynmap | |
parent | f35cb3406507850b8bf7085deb9d1a417f850549 (diff) |
Minecraft:
- Minor fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@15688 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MinecraftDynmap')
-rw-r--r-- | protocols/MinecraftDynmap/src/proto.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/protocols/MinecraftDynmap/src/proto.cpp b/protocols/MinecraftDynmap/src/proto.cpp index 5a354daa00..4b02d40029 100644 --- a/protocols/MinecraftDynmap/src/proto.cpp +++ b/protocols/MinecraftDynmap/src/proto.cpp @@ -23,7 +23,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #include "stdafx.h" MinecraftDynmapProto::MinecraftDynmapProto(const char* proto_name, const TCHAR* username) : - PROTO<MinecraftDynmapProto>(proto_name, username) + PROTO<MinecraftDynmapProto>(proto_name, username), m_interval(0), hConnection(0), hEventsConnection(0), + m_updateRate(5000), m_nick("") { this->signon_lock_ = CreateMutex(NULL, FALSE, NULL); this->send_message_lock_ = CreateMutex(NULL, FALSE, NULL); @@ -54,15 +55,9 @@ MinecraftDynmapProto::MinecraftDynmapProto(const char* proto_name, const TCHAR* MessageBox(NULL, error, _T("Miranda NG"), MB_OK | MB_ICONERROR); } - // Http connection handles - this->hConnection = NULL; - this->hEventsConnection = NULL; - // Client instantiation - this->m_nick = ""; this->error_count_ = 0; this->chatHandle_ = NULL; - this->m_updateRate = 5000; // Some default update rate } MinecraftDynmapProto::~MinecraftDynmapProto() @@ -159,8 +154,7 @@ int MinecraftDynmapProto::OnEvent(PROTOEVENTTYPE event,WPARAM wParam,LPARAM lPar INT_PTR MinecraftDynmapProto::SvcCreateAccMgrUI(WPARAM, LPARAM lParam) { - return (INT_PTR)CreateDialogParam(g_hInstance,MAKEINTRESOURCE(IDD_MinecraftDynmapACCOUNT), - (HWND)lParam, MinecraftDynmapAccountProc, (LPARAM)this); + return (INT_PTR)CreateDialogParam(g_hInstance,MAKEINTRESOURCE(IDD_MinecraftDynmapACCOUNT), (HWND)lParam, MinecraftDynmapAccountProc, (LPARAM)this); } int MinecraftDynmapProto::OnModulesLoaded(WPARAM, LPARAM) |