summaryrefslogtreecommitdiffstats
path: root/src/CompositeChat.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-10-25rework of the color code with & and standard codes (#5416)Debucquoy Anthony tonitch1-123/+68
* adding build* to gitignore and tags for ctags * Notation Changes * Adding & Parser * Avoid crash when & as first character * Looking for @ in the rest of the project * Formating style * Modifying test to reflect new behaviours * Adding a check for the first part * fixup! Adding & Parser style changes * Update APIDesk.lua * Update src/CompositeChat.cpp Co-authored-by: x12xx12x <44411062+12xx12@users.noreply.github.com> * explaination on the antishlash with ampersand * adding old deprecated formating * Update src/CompositeChat.cpp Co-authored-by: x12xx12x <44411062+12xx12@users.noreply.github.com> * Update src/CompositeChat.cpp * Update src/CompositeChat.cpp Co-authored-by: Debucquoy <debucqquoy.anthony@gmail.com> Co-authored-by: x12xx12x <44411062+12xx12@users.noreply.github.com>
2021-02-08CompositeChat: use variants12xx121-187/+62
2020-11-11changing cComposite Chat to newer c++ standart (#5028)12xx121-60/+57
* upgraded to new C++ for loops and fixed errors * readded delete instruction * now using unique ptr * added test for text only (that was causing an error for me) * using unique ptr constructor * added move constructor and deleted copy constructor * fixed deconstuctor http prefixes are constexpr and std::string_view * fixed whitespace Co-authored-by: 12xx12 <12xx12100@gmail.com>
2020-05-16Update logging code to reduce unnecessary string copying:Peter Bell1-12/+12
* Write into a single fmt::memory_buffer * Use string_view instead of AString for listener callbacks * Also collapsed vFLOG and vLOG functions into one per formatting type
2020-05-09Update submodules (#4727)peterbell101-3/+3
Closes #4708 This updates jsoncpp, mbedtls, TCLAP and SQLiteCpp to their latest stable release. A few additional changes were needed: * jsoncpp deprecated Reader, FastWriter and StyledWriter which I've replaced with some helper functions in JsonUtils.cpp * SQLiteCpp changed how it builds with external sqlite libraries, now expecting them to be installed. The simplest path was to remove sqlite from cuberite's submodule and just use SQLiteCpp's internal version.
2020-04-16Using Super.Mattes D1-7/+7
2016-12-16CompositeChat: Use shorter JSON format.Mattes D1-1/+8
2016-09-25Fixed cCompositeChat's constructor LuaAPI bindings.Mattes D1-3/+2
The tolua-generated constructor would return an extra string value.
2016-08-04Fixed RasPi builds of unit tests.Mattes D1-1/+3
On RasPi with gcc 4.8.2, the asserts wouldn't compile when tests were enabled. Enforced the assumption that ASSERT code is generated only in Debug builds.
2016-06-18SelfTests: Moved cCompositeChat test to a separate project.Mattes D1-89/+0
2016-02-05Bulk clearing of whitespaceLogicParrot1-17/+17
2015-06-11SelfTests are registered and executed after logging framework init.Mattes D1-12/+11
Fixes #2228.
2015-05-24Made -Weverything an error.tycho1-5/+5
2015-05-19Make -Werror disabling file onlytycho1-0/+4
Ad fix a load of warnings
2014-09-13Moved chat json creating to the CompositeChat class.Howaner1-0/+178
2014-08-12Renamed LoggersTycho1-12/+12
2014-08-10First Implementatation of new Loggin frameworkTycho1-12/+12
2014-07-17Normalized comments.madmaxoft1-9/+9
This was mostly done automatically and then visually inspected for obvious errors. All //-style comments should have a 2-space separation from the code, and 1 space after the comment sign.
2014-05-19cCompositeChat message type is now formattedTiger Wang1-1/+2
2014-05-19Added client translation to achievementsTiger Wang1-0/+22
2014-04-01LOG() API reads the LogLevel from the cCompositeChat's MessageType.madmaxoft1-0/+23
2014-03-31Console logging supports cCompositeChat as its parameters.madmaxoft1-0/+29
2014-03-31cCompositeChat has a MessageType param in the constructor.madmaxoft1-2/+2
This should make it easier to use.
2014-03-14Fixed a couple of missing defsTycho1-1/+1
2014-03-10Fixed test assertsTycho1-31/+31
2014-02-16Links sent via chat messages are clickable.madmaxoft1-0/+15
Fixes #658.
2014-02-16Implemented cCompositeChat::ParseText(), incl. self-test.madmaxoft1-1/+206
2014-02-15Implemented cCompositeChat.madmaxoft1-0/+206
This allows plugins to send composite chat messages, containing URLs, commands to run and cmdline suggestions. Fixes #678.