summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/utils.cpp
AgeCommit message (Collapse)Author
2015-03-04Facebook: Use participant names in chatroom name / seen info in "Firstname ↵Robert Pösel
S." format git-svn-id: http://svn.miranda-ng.org/main/trunk@12312 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-02-15Facebook: Fix for infinite channel "starting"; Version bumpRobert Pösel
This fixes it by better using of random number generator. Now we use rand_s() instead of rand() because of thread safety and also we have random "seed" per each facebook_client with much better initial random seed. Previously when user logged off and then logged in again, it used same randomgly generated clientid which resulted in confusion on Facebook server and "infinite" repeated requests for channel every second from Miranda... This bug was here probably for many months and affected all stable and development versions. git-svn-id: http://svn.miranda-ng.org/main/trunk@12119 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-02-14Facebook: Fix (hopefully) for not receiving messages sometimes; some tiny ↵Robert Pösel
other fixes This ancient "bug" was here since beginning of Facebook RM. But it's not a bug, it just Facebook return wrong sequence number which then causes this. git-svn-id: http://svn.miranda-ng.org/main/trunk@12103 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-02-06Facebook, Omegle, MobileState: Happy New Year 2015Robert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@12019 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-12-23Facebook: Rework working with timestamps; version bumpRobert Pösel
Use time_t almost everywhere instead of DWORD and remove fix_timestamp method to replace it with to_timestamp git-svn-id: http://svn.miranda-ng.org/main/trunk@11599 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-12-23Facebook: Remove support for "use local timestamp for messages"Robert Pösel
It's not needed anymore because we correctly set server time for sent messages, so everything will be consistent (in server time) git-svn-id: http://svn.miranda-ng.org/main/trunk@11598 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-12-20Facebook: Various code improvements (as reported by Coverity analyser); ↵Robert Pösel
version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@11546 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-12-14FacebookRM: changed warning lavel to w4Kirill Volinsky
git-svn-id: http://svn.miranda-ng.org/main/trunk@11420 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-11-28Facebook: Improve append_ordinal() and use of itRobert Pösel
It should fix receiving very special characters in messages but probably it won't make any differences in real use... git-svn-id: http://svn.miranda-ng.org/main/trunk@11132 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-11-28Facebook: Fix utils::text::replace_all method to not result in infinite loop ↵Robert Pösel
for some inputs This fixes problem with not showing notifications at all when "show notifications in special chatrooms" is enabled and notification with "%" inside is showed (and same problem for multi user chat messages) git-svn-id: http://svn.miranda-ng.org/main/trunk@11128 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-11-26Facebook: Various optimizations and cleanupRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@11083 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-11-17Facebook: Experimental messages sync at login (for last 24-hours only) ↵Robert Pösel
(patch by Vojtěch Kinkor, thanks) git-svn-id: http://svn.miranda-ng.org/main/trunk@11006 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-08-07Facebook: Fix trim method to not break some unicode charsRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@10107 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-08-07Facebook: Fix sending "&#123456" in messageRobert Pösel
- Remove "special_expressions_decode" from various wrong places (hopefully it won't cause any new problems) - Rename it to "html_entities_decode" git-svn-id: http://svn.miranda-ng.org/main/trunk@10104 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-07-15Facebook: Fix initializing random generatorRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@9808 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-04-14Facebook: better trim() fixRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@8975 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-04-14Facebook: fix crash when using trim() on empty stringRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@8972 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-04-14Facebook: respect "use local timestamp" setting also for "message read" eventsRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@8968 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-04-05Facebook: Fix newsfeeds (remove "Translate" link and load correct user_id)Robert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@8861 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-04-05Facebook: fix possible crash in slashu_to_utf8()Robert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@8859 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-03-15warning fixGeorge Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@8628 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-03-15Facebook: use clientid parameter in channel requests (fixes #536), version bumpRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@8613 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-01-31Facebook: small cleanup of special_expressions_decodeRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@7972 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-10-11Facebook: Cleanup also old LOG macroRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@6446 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-10-11- m_hNetlibUser moved to PROTO_INTERFACE;George Hazan
- unified protocol loggers git-svn-id: http://svn.miranda-ng.org/main/trunk@6435 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-08-11ProtoGetAvatarFormat, ProtoGetAvatarFileFormat, ProtoGetBufferFormat, ↵George Hazan
ProtoGetAvatarExtension - standard helpers for protocol avatars' processing instead of the zoo that existed previously git-svn-id: http://svn.miranda-ng.org/main/trunk@5645 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-07-29Facebook: utils::mem cleanupRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@5523 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-07-28Facebook: Post status improvements (part 1) - ability to post URL attachmentsRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@5502 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-07-26Facebook: Improved receiving messages with attachments (files, photos, stickers)Robert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@5491 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-07-24Facebook: fixesRobert Pösel
- fixed ghosts contacts (due to wrongly accessing json array) - fixed freeing parsed json data - fixed deleting item from map while iterating - fixed timestamp values from facebook - reverted back previously reverted fix git-svn-id: http://svn.miranda-ng.org/main/trunk@5477 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-07-12Facebook:Robert Pösel
- added ability to search friends by ID or username - fixed crash when using AddContactPlus git-svn-id: http://svn.miranda-ng.org/main/trunk@5341 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-06-12Facebook: Correct trimming of messages and not receiving empty ones.Robert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@4923 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-05-16words of wisdom were well receivedGeorge Hazan
now the shortened types are called ptrA, ptrT & ptrW respectively git-svn-id: http://svn.miranda-ng.org/main/trunk@4682 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-05-16shortened typedefs for string buffers:George Hazan
MCBuf -> mir_ptr<char> MTBuf -> mir_ptr<TCHAR> MWBuf -> mir_ptr<WCHAR> git-svn-id: http://svn.miranda-ng.org/main/trunk@4680 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-05-15Facebook: Show info in statusbar when user read your message.Robert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@4662 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-04-10Removed spaces around bracketsRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@4406 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-04-05- rest of menus cleared;George Hazan
- old database macroses wiped out from all plugins (left in m_database.h for compatibility) git-svn-id: http://svn.miranda-ng.org/main/trunk@4324 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-03-24MS_NETLIB_URLENCODE removed from all plugins, but still exists in the coreGeorge Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@4181 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-02-08Facebook: Version bump. Copyright year update.Robert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@3498 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2012-12-13FacebookRM: Experimental and buggy support for custom smileysRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@2734 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2012-11-05Facebook: Replace #&... html codes to chars (fixes #32)Robert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@2208 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2012-10-12FacebookRM: folders restructurizationVadim Dashevskiy
git-svn-id: http://svn.miranda-ng.org/main/trunk@1887 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c