Make the '/away' command really set the status to away (not unavailable).

This commit is contained in:
Florian Quèze 2010-02-22 09:09:41 +01:00
Родитель c49f3b0185
Коммит a5336f3885
2 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -251,7 +251,8 @@ var buddyList = {
let statusType = pcs.currentStatusType;
if (statusType == Ci.purpleICoreService.STATUS_AVAILABLE)
status = "available";
else if (statusType == Ci.purpleICoreService.STATUS_UNAVAILABLE)
else if (statusType == Ci.purpleICoreService.STATUS_UNAVAILABLE ||
statusType == Ci.purpleICoreService.STATUS_AWAY)
status = "unavailable";
else if (statusType == Ci.purpleICoreService.STATUS_OFFLINE)
status = "offline";

Просмотреть файл

@ -192,7 +192,8 @@ var menus = {
let statusType = pcs.currentStatusType;
if (statusType == Ci.purpleICoreService.STATUS_AVAILABLE)
status = "available";
else if (statusType == Ci.purpleICoreService.STATUS_UNAVAILABLE)
else if (statusType == Ci.purpleICoreService.STATUS_UNAVAILABLE ||
statusType == Ci.purpleICoreService.STATUS_AWAY)
status = "unavailable";
else if (statusType == Ci.purpleICoreService.STATUS_OFFLINE)
status = "offline";