summaryrefslogtreecommitdiff
path: root/plugins/MyDetails
diff options
context:
space:
mode:
authorEugene Lishnevsky <elishnevsky@gmail.com>2012-07-19 21:05:30 +0000
committerEugene Lishnevsky <elishnevsky@gmail.com>2012-07-19 21:05:30 +0000
commitf695fb115e898ee1c4068b8b5a0d1a74d4d08196 (patch)
treebc94ae314545f3836b159f20d70ea36a81e60b90 /plugins/MyDetails
parent96a56ca1ce9b76ce7be8208c931b9fabc10c5409 (diff)
Fix: Dialog wouldn't appear when left-clicking status message in MyDetails.
git-svn-id: http://svn.miranda-ng.org/main/trunk@1056 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MyDetails')
-rw-r--r--plugins/MyDetails/data.cpp2
-rw-r--r--plugins/MyDetails/mydetails.cpp9
2 files changed, 6 insertions, 5 deletions
diff --git a/plugins/MyDetails/data.cpp b/plugins/MyDetails/data.cpp
index 9452f9f5e4..e04105a7d9 100644
--- a/plugins/MyDetails/data.cpp
+++ b/plugins/MyDetails/data.cpp
@@ -325,7 +325,7 @@ void Protocol::SetStatusMsg(int aStatus, const TCHAR *message)
if ( !CanSetStatusMsg(aStatus))
return;
- CallProtoService(name, PS_SETAWAYMSG, (WPARAM)aStatus, (LPARAM)message);
+ CallProtoService(name, PS_SETAWAYMSGT, (WPARAM)aStatus, (LPARAM)message);
}
bool Protocol::HasAvatar()
diff --git a/plugins/MyDetails/mydetails.cpp b/plugins/MyDetails/mydetails.cpp
index 2e6e87089b..feb39c6e18 100644
--- a/plugins/MyDetails/mydetails.cpp
+++ b/plugins/MyDetails/mydetails.cpp
@@ -676,11 +676,11 @@ static int PluginCommand_SetMyStatusMessageUI(WPARAM wParam,LPARAM lParam)
}
}
- if (proto_num == -1)
+ if (proto_num == -1) {
return -1;
+ }
- if (protocols->CanSetStatusMsgPerProtocol() && !proto->CanSetStatusMsg())
- {
+ if (protocols->CanSetStatusMsgPerProtocol() && !proto->CanSetStatusMsg()) {
return -2;
}
}
@@ -701,7 +701,8 @@ static int PluginCommand_SetMyStatusMessageUI(WPARAM wParam,LPARAM lParam)
return 0;
}
- else if (proto == NULL || proto->status != ID_STATUS_OFFLINE)
+
+ if (proto == NULL || proto->status != ID_STATUS_OFFLINE)
{
if ( !status_msg_dialog_open)
{