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 /protocols | |
parent | 069b1736634b81fbd99909f668f4318fab4cc9b9 (diff) |
fix fo statuses ids
Diffstat (limited to 'protocols')
-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 |
3 files changed, 5 insertions, 8 deletions
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
|