summaryrefslogtreecommitdiff
path: root/protocols/Slack/src/slack_proto.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Slack/src/slack_proto.cpp')
-rw-r--r--protocols/Slack/src/slack_proto.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/protocols/Slack/src/slack_proto.cpp b/protocols/Slack/src/slack_proto.cpp
index e3731794d4..318e1366bc 100644
--- a/protocols/Slack/src/slack_proto.cpp
+++ b/protocols/Slack/src/slack_proto.cpp
@@ -23,9 +23,9 @@ DWORD_PTR CSlackProto::GetCaps(int type, MCONTACT)
case PFLAGNUM_1:
return PF1_IMSEND;
case PFLAGNUM_2:
- return PF2_ONLINE;
+ return PF2_ONLINE | PF2_SHORTAWAY;
case PFLAGNUM_3:
- return PF2_ONLINE;
+ return PF2_ONLINE | PF2_SHORTAWAY;
case PFLAG_UNIQUEIDTEXT:
return (INT_PTR)"User Id";
case PFLAG_UNIQUEIDSETTING:
@@ -154,6 +154,9 @@ int CSlackProto::OnEvent(PROTOEVENTTYPE iEventType, WPARAM wParam, LPARAM lParam
case EV_PROTO_ONLOAD:
return OnAccountLoaded(wParam, lParam);
+ case EV_PROTO_ONERASE:
+ return OnAccountDeleted(wParam, lParam);
+
case EV_PROTO_ONCONTACTDELETED:
return OnContactDeleted(wParam, lParam);
}