diff options
author | dartraiden <wowemuh@gmail.com> | 2019-06-04 15:50:53 +0300 |
---|---|---|
committer | dartraiden <wowemuh@gmail.com> | 2019-06-04 15:51:36 +0300 |
commit | 49e2ce57910d52c914af340bd14e6970b734a922 (patch) | |
tree | bc2db35f25b62d6287315fefe5a273a46253e12d | |
parent | 069b1736634b81fbd99909f668f4318fab4cc9b9 (diff) |
fix fo statuses ids
-rw-r--r-- | plugins/Actman/services.ini | 14 | ||||
-rw-r--r-- | plugins/BossKeyPlus/src/BossKey.cpp | 2 | ||||
-rw-r--r-- | plugins/MirandaG15/src/CContactList.cpp | 5 | ||||
-rw-r--r-- | plugins/Popup/src/resource.h | 2 | ||||
-rw-r--r-- | protocols/Non-IM Contact/src/contactinfo.cpp | 2 | ||||
-rw-r--r-- | protocols/Non-IM Contact/src/resource.h | 5 | ||||
-rw-r--r-- | protocols/Twitter/src/proto.cpp | 6 |
7 files changed, 11 insertions, 25 deletions
diff --git a/plugins/Actman/services.ini b/plugins/Actman/services.ini index 572e95f396..276b16487b 100644 --- a/plugins/Actman/services.ini +++ b/plugins/Actman/services.ini @@ -75,7 +75,7 @@ descr=Change 'hide offline contacts' option value [Service:CList/SetStatusMode]
alias=MS_CLIST_SETSTATUSMODE
-wparam=40071 Offline|40072 Online|40073 Away|40074 Do not disturb|40075 Not available|40076 Occupied|40077 Free for chat|40078 Invisible|40079 On the phone|40080 Out to lunch
+wparam=40071 Offline|40072 Online|40073 Away|40074 Do not disturb|40075 Not available|40076 Occupied|40077 Invisible
lparam=0
return=int 0, if successful
descr=Set global status
@@ -442,14 +442,14 @@ descr=Manage Jabber Bookmarks [Service:<proto>/SetAwayMsg]
alias=PS_SETAWAYMSG
-wparam=40071 Offline|40072 Online|40073 Away|40074 Do not disturb|40075 Not available|40076 Occupied|40077 Free for chat|40078 Invisible|40079 On the phone|40080 Out to lunch
+wparam=40071 Offline|40072 Online|40073 Away|40074 Do not disturb|40075 Not available|40076 Occupied|40077 Invisible
lparam=text
return=int 0, if successful
descr=Set status message
[Service:<proto>/SetStatus]
alias=PS_SETSTATUS
-wparam=40071 Offline|40072 Online|40073 Away|40074 Do not disturb|40075 Not available|40076 Occupied|40077 Free for chat|40078 Invisible|40079 On the phone|40080 Out to lunch
+wparam=40071 Offline|40072 Online|40073 Away|40074 Do not disturb|40075 Not available|40076 Occupied|40077 Invisible
lparam=0
return=int 0, if successful
descr=Set protocol status
@@ -531,14 +531,8 @@ value=40074 value=40075
[Const:ID_STATUS_OCCUPIED]
value=40076
-[Const:ID_STATUS_FREECHAT]
-value=40077
[Const:ID_STATUS_INVISIBLE]
-value=40078
-[Const:ID_STATUS_ONTHEPHONE]
-value=40079
-[Const:ID_STATUS_OUTTOLUNCH]
-value=40080
+value=40077
[Const:ID_STATUS_IDLE]
value=40081
diff --git a/plugins/BossKeyPlus/src/BossKey.cpp b/plugins/BossKeyPlus/src/BossKey.cpp index 6907c3dbdf..a4c0d993d3 100644 --- a/plugins/BossKeyPlus/src/BossKey.cpp +++ b/plugins/BossKeyPlus/src/BossKey.cpp @@ -207,7 +207,7 @@ static int ChangeAllProtoStatuses(unsigned statusMode, wchar_t *msg) unsigned status = Proto_GetStatus(proto[i]->szModuleName);
if (
(g_wMask & OPT_ONLINEONLY) ? // check "Change only if current status is Online" option
- ((status == ID_STATUS_ONLINE)) // process only "online" and "free for chat"
+ ((status == ID_STATUS_ONLINE)) // process only "online"
: ((status > ID_STATUS_OFFLINE) && (status < ID_STATUS_IDLE) && (status != ID_STATUS_INVISIBLE))) // process all existing statuses except for "invisible" & "offline"
{
if (g_wMask & OPT_SETONLINEBACK) { // need to save old statuses & status messages
diff --git a/plugins/MirandaG15/src/CContactList.cpp b/plugins/MirandaG15/src/CContactList.cpp index f62ed747c2..5e2a1b15db 100644 --- a/plugins/MirandaG15/src/CContactList.cpp +++ b/plugins/MirandaG15/src/CContactList.cpp @@ -11,10 +11,7 @@ const int aiStatusPriority[] = 1, // ID_STATUS_DND 40074
7, // ID_STATUS_NA 40075
6, // ID_STATUS_OCCUPIED 40076
- 10, // ID_STATUS_FREECHAT 40077
- 9, // ID_STATUS_INVISIBLE 40078
- 8, // ID_STATUS_ONTHEPHONE 40079
- 8 // ID_STATUS_OUTTOLUNCH 40080
+ 9, // ID_STATUS_INVISIBLE 40077
};
//************************************************************************
diff --git a/plugins/Popup/src/resource.h b/plugins/Popup/src/resource.h index 8dd0e96ff2..8146f57751 100644 --- a/plugins/Popup/src/resource.h +++ b/plugins/Popup/src/resource.h @@ -170,8 +170,6 @@ #define IDC_CHK_ONLINE 40072
#define IDC_CHK_NA 40075
#define IDC_CHK_OCCUPIED 40076
-#define IDC_CHK_ONTHEPHONE 40079
-#define IDC_CHK_OUTTOLUNCH 40080
// Next default values for new objects
//
diff --git a/protocols/Non-IM Contact/src/contactinfo.cpp b/protocols/Non-IM Contact/src/contactinfo.cpp index cd5faa64a8..00c718fad2 100644 --- a/protocols/Non-IM Contact/src/contactinfo.cpp +++ b/protocols/Non-IM Contact/src/contactinfo.cpp @@ -141,7 +141,7 @@ INT_PTR CALLBACK DlgProcOtherStuff(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP } /* icons */ - CheckRadioButton(hwnd, 40072, 40080, g_plugin.getWord(hContact, "Icon", ID_STATUS_ONLINE)); + CheckRadioButton(hwnd, 40072, 40077, g_plugin.getWord(hContact, "Icon", ID_STATUS_ONLINE)); SetWindowLongPtr(GetDlgItem(hwnd, CHK_ONLINE), GWLP_USERDATA, (LONG_PTR)Skin_LoadProtoIcon(MODNAME, ID_STATUS_ONLINE)); g_PrevBtnWndProc = (WNDPROC)SetWindowLongPtr(GetDlgItem(hwnd, CHK_ONLINE), GWLP_WNDPROC, (LONG_PTR)ButtWndProc); for (int i = ID_STATUS_ONLINE; i <= ID_STATUS_MAX; i++) { diff --git a/protocols/Non-IM Contact/src/resource.h b/protocols/Non-IM Contact/src/resource.h index 8ce9860106..6cf12110fc 100644 --- a/protocols/Non-IM Contact/src/resource.h +++ b/protocols/Non-IM Contact/src/resource.h @@ -59,10 +59,7 @@ #define CHK_DND 40074 #define CHK_NA 40075 #define CHK_OCC 40076 -#define CHK_FFC 40077 -#define CHK_INVISIBLE 40078 -#define CHK_PHONE 40079 -#define CHK_LUNCH 40080 +#define CHK_INVISIBLE 40077 // Next default values for new objects // diff --git a/protocols/Twitter/src/proto.cpp b/protocols/Twitter/src/proto.cpp index 3a1b07cc2e..7db3a47156 100644 --- a/protocols/Twitter/src/proto.cpp +++ b/protocols/Twitter/src/proto.cpp @@ -172,8 +172,8 @@ int TwitterProto::SetStatus(int new_status) return 0;
m_iDesiredStatus = new_status;
- // 40072 - 40080 are the "online" statuses, basically every status except offline. see statusmodes.h
- if (new_status >= 40072 && new_status <= 40080) {
+ // 40072 - 40077 are the "online" statuses, basically every status except offline. see statusmodes.h
+ if (new_status >= 40072 && new_status <= 40077) {
m_iDesiredStatus = ID_STATUS_ONLINE; //i think i have to set this so it forces the twitter proto to be online (and not away, DND, etc)
@@ -182,7 +182,7 @@ int TwitterProto::SetStatus(int new_status) return 0;
// if we're already connected, and we change to another connected status, don't try and reconnect!
- if (old_status >= 40072 && old_status <= 40080)
+ if (old_status >= 40072 && old_status <= 40077)
return 0;
// i think here we tell the proto interface struct that we're connecting, just so it knows
|