diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2014-06-12 18:34:23 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2014-06-12 18:34:23 +0000 |
commit | e74411f50d715f467a378ae77d8feee11d03a1a2 (patch) | |
tree | ae0f74b6ce47e00163a8550c1bd237f6c4ef20cd /plugins/MyDetails/src/mydetails.cpp | |
parent | 7de38a08b97e0554e318b8c25806cef5d47259e6 (diff) |
MyDetails: Restored support for core default away messages, replaces SimpleAway with SimpleStatusMsg support
git-svn-id: http://svn.miranda-ng.org/main/trunk@9439 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MyDetails/src/mydetails.cpp')
-rw-r--r-- | plugins/MyDetails/src/mydetails.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/plugins/MyDetails/src/mydetails.cpp b/plugins/MyDetails/src/mydetails.cpp index 5316f302eb..0ccf19a2d5 100644 --- a/plugins/MyDetails/src/mydetails.cpp +++ b/plugins/MyDetails/src/mydetails.cpp @@ -488,9 +488,19 @@ static INT_PTR PluginCommand_SetMyStatusMessageUI(WPARAM wParam, LPARAM lParam) if (proto_num == -1)
return -1;
- if (!proto->CanSetStatusMsg())
+ if (protocols->CanSetStatusMsgPerProtocol() && !proto->CanSetStatusMsg())
return -2;
}
+ else if (ServiceExists(MS_SIMPLESTATUSMSG_CHANGESTATUSMSG)) {
+ if (proto == NULL && status == 0)
+ CallService(MS_SIMPLESTATUSMSG_CHANGESTATUSMSG, protocols->GetGlobalStatus(), NULL);
+ else if (status == 0)
+ CallService(MS_SIMPLESTATUSMSG_CHANGESTATUSMSG, proto->status, (LPARAM)proto_name);
+ else
+ CallService(MS_SIMPLESTATUSMSG_CHANGESTATUSMSG, status, (LPARAM)proto_name);
+
+ return 0;
+ }
if (proto == NULL || proto->status != ID_STATUS_OFFLINE) {
if (!status_msg_dialog_open) {
|