Commit Graph
27 Commits
Author SHA1 Message Date
Florent Le Coz 5999e6e0c3 Introduce the timed events 2014-05-28 17:31:28 +02:00
Florent Le Coz 712b7bdfdf Correctly handle the usage of ! as a IRC user mode indicator
Since “!” is also the separator between the nickname and the user hostname,
having “!” as the user mode (e.g. !nick!~some@host.bla) would cause the nick
to be empty. Now we skip it if it is a valid user mode indicator.
2014-05-14 21:48:38 +02:00
Florent Le Coz f35db5ceba Implement next_id() to 2014-05-06 22:39:09 +02:00
Florent Le Coz bd8a5a505e The logging test is less ambiguous 2014-04-21 23:03:58 +02:00
Florent Le Coz e847084b00 Improve the test on jidprep 2014-04-21 22:59:16 +02:00
Florent Le Coz 4b5d2d11c5 test.cfg file is now created by the test suite 2014-04-21 22:56:22 +02:00
Florent Le Coz 114007f10d Actually do the last commit, but completely this time 2014-04-18 10:46:25 +02:00
Florent Le Coz bd7936bdfe No more missing text when converting IRC colors to xhtml-im
fix #2496
2014-04-17 20:37:46 +02:00
Florent Le Coz 7f74f62e56 Merge branch 'master' into dummy_chan 2014-04-15 04:11:27 +02:00
Florent Le Coz 020325dbb0 [WIP] DummyIrcChannel 2014-04-13 15:37:56 +02:00
Florent Le Coz f00f5c3ffb Do not use exceptions for missing tags, improvement in code simplicity 2014-04-11 23:06:13 +02:00
Florent Le Coz de7b3503a4 Jidprep also handles the resource part 2014-01-28 03:30:12 +01:00
Florent Le Coz 7d8ce3b563 Use XML-sanitized strings when serializing stanzas for the XMPP server 2013-12-15 00:34:30 +01:00
Florent Le Coz 3960e4d5af Functions to provide xml-valid strings
By removing invalid chars, see http://www.w3.org/TR/xml/#charsets
2013-12-15 00:34:13 +01:00
Florent Le Coz b11126a19d Provide a JID for IRC users, and add a stringprep dependency for this 2013-12-08 20:14:12 +01:00
Florent Le Coz 2662ed89e2 Add a logger class 2013-12-03 19:15:37 +01:00
Florent Le Coz 1151c26c36 Channel names are case insensitive
But some servers (epiknet for example) send channel names with an uppercase
2013-11-28 02:14:42 +01:00
Florent Le Coz 2921f53657 Print some stuff when ./test is running 2013-11-28 01:18:26 +01:00
Florent Le Coz e6f20d3c0f Implement IRC format to xhtml-im conversion
The generated XML is very verbose because each IRC formatting tag makes us
close a <span/> element and reopen it with the new style applied.  However,
this works quite well and is easy to implement.
2013-11-28 01:18:26 +01:00
Florent Le Coz fba01f4646 Remove incomplete implementation of remove_irc_colors 2013-11-27 00:37:23 +01:00
Florent Le Coz bfcc9cdc74 Send XMPP multi-line messages as multiple IRC messages 2013-11-21 00:58:14 +01:00
Florent Le Coz e7a441e798 Add a test for xml escape/unescape 2013-11-16 12:08:32 +01:00
Emmanuel Gil Peyrot 83219052c3 Fix JID parsing 2013-11-14 23:31:32 +01:00
Florent Le Coz f0d9273da6 Add a Config module, and use it to get the password from a file 2013-11-10 20:47:11 +01:00
Florent Le Coz 3d92360310 Use the Expat library directly instead of relying on expatpp
And now we handle namespaces, yay.
And a nice little test.
2013-11-10 02:30:22 +01:00
Florent Le Coz f38b31a63e Remove IRC colors from the body when forwarding it to XMPP 2013-11-09 21:40:29 +01:00
Florent Le Coz ccebe901d7 Check UTF-8 encoding, and convert strings to UTF-8
Handle conversion errors properly by inserting � instead.  Add a binary
header to provide portable way to write binary literals (I like them) Also
add a test file.  ref #2404
2013-11-09 06:01:47 +01:00