diff options
author | George Hazan <george.hazan@gmail.com> | 2015-05-31 16:50:53 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-05-31 16:50:53 +0000 |
commit | d57b6799dac75f3c428393666d079fe59361c4b5 (patch) | |
tree | 4bcb3de1b241e89c4dca03bd8b031bc17dbe9b56 /plugins/CmdLine | |
parent | 85e27141c915d057deeb4be6c4bc81d387c39be6 (diff) |
fixes for PS_SETAWAYMSG calls
git-svn-id: http://svn.miranda-ng.org/main/trunk@13939 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CmdLine')
-rw-r--r-- | plugins/CmdLine/src/mimcmd_handlers.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/CmdLine/src/mimcmd_handlers.cpp b/plugins/CmdLine/src/mimcmd_handlers.cpp index 5e91e041eb..e26b134d7e 100644 --- a/plugins/CmdLine/src/mimcmd_handlers.cpp +++ b/plugins/CmdLine/src/mimcmd_handlers.cpp @@ -369,7 +369,8 @@ void HandleAwayMsgCommand(PCommand command, TArgument *argv, int argc, PReply re if ((CallProtoService(protocol, PS_GETCAPS, PFLAGNUM_1, 0) & PF1_MODEMSGSEND) != 0) //if the protocol supports away messages
{
status = CallProtoService(protocol, PS_GETSTATUS, 0, 0);
- res = CallProtoService(protocol, PS_SETAWAYMSG, status, (LPARAM) awayMsg);
+ ptrW wszAwayMsg(mir_a2u(awayMsg));
+ res = CallProtoService(protocol, PS_SETAWAYMSG, status, (LPARAM)wszAwayMsg);
PrettyStatusMode(status, pn, sizeof(pn));
if (res)
szReply.AppendFormat(Translate("Failed to set '%S' status message to '%s' (status is '%s')."), accounts[i]->tszAccountName , awayMsg, pn);
|