summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-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)
{