summaryrefslogtreecommitdiff
path: root/core/Messenger.c
AgeCommit message (Collapse)Author
2013-08-13core: Fix a possible buffer overflow using getself_name().Andreas Schneider
If the passed buffer is smaller than MAX_NAME_LENGTH then, you will probably overflow it.
2013-08-12Added support for userdata in callbacksalek900
2013-08-12Messenger refactor - redid work from pull request 79Chris Hall
Moves static state out of Messenger.c and into a Messenger struct Purely stylistic, no functional changes were made. This commit also changed all the callers of Messenger as they now have to pass an instance of the Messenger struct to messenger functions. Also removed some uses of the 'static' keyword at the beginning of function definitions when the function was already declared static, as these caused gcc to whine.
2013-08-11Send our current status and name to friend that just came online.alek900
Our username and status might have changed while our friend was offline.
2013-08-11Fixed a mistakeMaxim Biro
2013-08-11Replaced friendstatus with connectionstatusMaxim Biro
2013-08-11Merge pull request #429 from dparnell/pristineirungentoo
Fixed m_sendmessage to return the ID of the message sent
2013-08-11Fixed m_sendmessage to return the ID of the message sentDaniel Parnell
2013-08-11m_addfriend triggerd m_callback_friendstatus with a friendid thats not ↵alek900
returned yet from m_addfriend
2013-08-10Merge remote-tracking branch 'upstream/master' into prslvr
2013-08-10tabs -> spacesslvr
2013-08-09Fixed possible bug.irungentoo
2013-08-10Updated initMessengerslvr
2013-08-10network_registerhandlerslvr
2013-08-09Returned the length checkMaxim Biro
2013-08-09Introduced data pointer and data_lengthMaxim Biro
2013-08-09Changed the way statusmessage is allocatedMaxim Biro
2013-08-09Moved some checks aroundMaxim Biro
2013-08-09Extracted repeated code into a functionMaxim Biro
2013-08-08Merge pull request #403 from jin-eld/fix-friend-status-callbackirungentoo
Fix typo in function name which results in missing symbol
2013-08-09Fix typo in function name which results in missing symboljin-eld
2013-08-08Merge pull request #400 from JFreegman/masterirungentoo
Added actions/alternative type of messages
2013-08-08added actions/alternate messagesJfreegman
2013-08-08Merge branch 'master' of https://github.com/nurupo/InsertProjectNameHere ↵irungentoo
into nurupo-master Conflicts: core/Messenger.c
2013-08-08Made name consistent with other 'on change' callbacksMaxim Biro
2013-08-08Fixed a silly code ordering mistakeMaxim Biro
2013-08-08Fixed dynamic memory allocation.irungentoo
2013-08-08make friendlist resize dynamicallyLuke Champine
2013-08-08Made a callback for Friend.status changeMaxim Biro
2013-08-07Refactored an expressionMaxim Biro
2013-08-07Added length checksMaxim Biro
2013-08-07Merge branch 'master' of http://github.com/irungentoo/ProjectTox-CoreMaxim Biro
Conflicts: core/Messenger.c core/Messenger.h
2013-08-07Some cosmetic improvements.irungentoo
2013-08-07Separated StatusMessage from UserStatusMaxim Biro
2013-08-07Merge branch 'read-receipt' of https://github.com/stal888/ProjectTox-Core ↵irungentoo
into pull-requests Conflicts: testing/toxic/chat.c testing/toxic/prompt.c
2013-08-07Document functions, and fix bug.Sebastian Stal
2013-08-07Add read receipts using packet ID 65.Sebastian Stal
2013-08-07Fixed two bugsJfreegman
2013-08-06Fix bug where we could run past the end of the friends listNick ODell
2013-08-06Small bug fixed.irungentoo
2013-08-05Add functions for dealing with userstatus kinds.Sebastian Stal
2013-08-05temporary fix to prevent m_addfriend from segfaultingLuke Champine
2013-08-05Use void for functions with no parametersFlorian Hahn
2013-08-02Merge branch 'Jeffail-master'irungentoo
2013-08-02Time is better as an unsigned variable.irungentoo
2013-08-02updated return value commentscharmlesscoin
2013-08-02added #defines for friend.status as well as for erroring on m_addfriend*charmlesscoin
2013-08-02removed getnumfriends()charmlesscoin
2013-08-02DHT: Fix return value of time().Andreas Schneider
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Signed-off-by: irungentoo <irungentoo@gmail.com>
2013-08-01added error code for no message on friend add & updated nTox.c/nTox_win32.cJfreegman