summaryrefslogtreecommitdiff
path: root/src/idle-text.c
AgeCommit message (Collapse)AuthorFilesLines
2013-09-23s/NUM_TP_*/TP_NUM_*Guillaume Desmottes1-1/+1
2013-09-16Use TP_DISABLE_SINGLE_INCLUDEGuillaume Desmottes1-2/+0
https://bugs.freedesktop.org/show_bug.cgi?id=69311
2013-04-24Include config.h in each source fileSimon McVittie1-0/+1
Among other effects, this makes GLIB_VERSION_MIN_REQUIRED effective. Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2012-05-10Various dull C89-complianceSimon McVittie1-2/+4
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
2012-05-08Use TP_ERROR, not deprecated TP_ERRORSSimon McVittie1-2/+2
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49600
2011-05-10Pass the message type to tp_cm_message_new_textSjoerd Simons1-2/+1
Idle didn't pass the type as parsed to the tp_cm_message_new_text function, causing clients to think all messages were of type normal. Fixes #37038
2011-03-17Use tp_cm_message_new_text()Guillaume Desmottes1-10/+2
It makes the code simpler and set the message-sender-id key (fdo #35362).
2011-03-02message-received is int64 not uint64Danielle Madeley1-1/+1
2010-09-16factor out idle_text_receivedGuillaume Desmottes1-0/+26
2010-09-16rename labelGuillaume Desmottes1-3/+3
2010-09-16use tp_str_empty()Guillaume Desmottes1-1/+1
2010-09-16no need to check if content_type is NULL, tp_strdiff does it for usGuillaume Desmottes1-1/+1
2010-08-17Implement Messages interface (fdo #29378)Guillaume Desmottes1-19/+51
2009-10-07Fix two valgrind-reported leaksJonathon Jongsma1-0/+1
For some reason, we were strduping the channel name needlessly in _channel_normalize_func() Also, we forgot to free the bodies returned from idle_text_encode_and_split()
2009-05-28Correct the error for unsupported message typesWill Thompson1-2/+2
2009-05-28Document what idle_text_encode_and_split doesWill Thompson1-1/+23
It's not obvious at a first glance what it's doing, and why. Also, I rewrapped its argument list, in contravention of the style of other Idle source files, because it was ridiculously unwieldy.
2009-05-27Don't include "PRIVMSG ..." in Sent signalsWill Thompson1-8/+21
The previous fix was incorrect, as it emitted the same string in Sent that it sends over the wire.
2009-03-27Bug #17354 - Emits Send immediately, even if the message is queuedJonathon Jongsma1-3/+3
Contrary to what the bug implies, it was decided that it's OK to emit the 'Sent' signal immediately even if the message is only queued and is not yet actually sent. But there is still a problem in that if the message was long enough to be split into multiple messages, only one 'Sent' signal is emitted instead of one for each separate message. This patch emits a signal for each individual message.
2009-02-13Split long messages properly (Bug #17392)Jonathon Jongsma1-3/+4
Use the newly-added idle_connection_get_max_message_length() API to split long messages so that they allow for the server to add a prefix onto the messages that it relays to others instead of simply using 512 as the max message length I had to modify the test a bit to get it to behave like a real IRC server, but now the test passes fine, and I did quite a bit of manual testing (copy/pasting large chunks of test between two accounts) and have not seen any issues yet. Part of my manual testing included copy/pasting large amounts of unicode text from various wikipedia articles in other languages, so I believe that the utf-8 splitting issue is also fixed properly in this branch.
2009-02-13Don't split a utf-8 codepoint in half when splitting long messageJonathon Jongsma1-17/+16
Basic approach: find the place we would normally break the message, and walk back to the previous utf-8 character start.
2008-09-25fix compile on 64bit archFlorian Steinel1-1/+1
2008-09-01Rewrite idle_text_encode_and_split to be more obviously correct.Will Thompson1-42/+51
Fixes an infinite loop for ACTIONs containing newlines.
2008-08-29Extract splitting of long/multiline messages to a functionWill Thompson1-20/+41
2008-08-29Fix another signedness warning.Will Thompson1-1/+3
2008-08-29Don't use an invalid enum value as a failure flagWill Thompson1-3/+4
2008-01-16Still more coding style unifications, now there should be quite a few less ↵Olli Salli1-1/+1
function declarations and calls with a space between the function name and the opening paren. 20080116162319-9db4d-8fe36cffc8d4ae36ce744b987a657771b32c98ed.gz
2008-01-15Clean up includesOlli Salli1-3/+2
20080115205329-9db4d-6a57ff858a5ce98ae86074e81f3be814e05d6bd3.gz
2008-01-12Coding style, part: Public functions of classes shouldn't have an underscore ↵Olli Salli1-1/+1
prefix 20080112205348-9db4d-dfcfe6f9e50d5cfda568b3c074d11b62cd44678c.gz
2007-12-27Unify coding style, chapter Six: Binary operators and their operands should ↵Olli Salli1-8/+8
have whitespace in between 20071227220208-9db4d-2e018ea7b69ed08e7f17c909b2fa47470c4081e0.gz
2007-12-27Unify coding style, book II: Thou shalt indent by tabs, and only tabsOlli Salli1-1/+1
20071227202421-9db4d-7fb30eae03df9f5ae881719a257c90f3adcb3430.gz
2007-12-27Remove tabs from places other than beginning of linesOlli Salli1-1/+1
20071227201813-9db4d-818203d16e295aa5bd678dd62cccffd76c836f17.gz
2007-12-27Remove trailing whitespaceOlli Salli1-2/+2
20071227201423-9db4d-9747ce7d1faa02cd80ab78daeec4d2abad6af37f.gz
2007-12-27Unify coding style part 1 (mostly bracing style)Olli Salli1-23/+9
20071227200251-9db4d-5f34b917f7042957c8d441c09d09bfe35619d47f.gz
2007-05-01Use the blingbling killer in idle_text_decodeOlli Salli1-3/+10
20070501112923-9db4d-4c216211000b296687dfb5fab579528d635e8b83.gz
2007-04-24Rename text.[ch] to idle-text.[ch] (how incredibly clever to do it in this ↵Olli Salli1-0/+128
branch) 20070424102715-9db4d-eb7d543b6c6b0253dfe1708649b46643df7dcfe5.gz