<feed xmlns='http://www.w3.org/2005/Atom'>
<title>~steering/inspircd++.git/src/helperfuncs.cpp, branch v3.2.0</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>https://www.cgit.space/~steering/inspircd++.git/atom/src/helperfuncs.cpp?h=v3.2.0</id>
<link rel='self' href='https://www.cgit.space/~steering/inspircd++.git/atom/src/helperfuncs.cpp?h=v3.2.0'/>
<link rel='alternate' type='text/html' href='https://www.cgit.space/~steering/inspircd++.git/'/>
<updated>2019-07-04T16:42:41Z</updated>
<entry>
<title>DurationString(): Return "0s" for a duration of 0 (#1677).</title>
<updated>2019-07-04T16:42:41Z</updated>
<author>
<name>Matt Schatz</name>
</author>
<published>2019-07-04T16:42:41Z</published>
<link rel='alternate' type='text/html' href='https://www.cgit.space/~steering/inspircd++.git/commit/?id=4681faacb542f75cf3ceba6924e3e936a809e01e'/>
<id>urn:sha1:4681faacb542f75cf3ceba6924e3e936a809e01e</id>
<content type='text'>
Usually a duration of 0 is not allowed or handled separately,
but it can also be used as a 'no set time' without separation.

Case in point: m_chanhistory calls DurationString() to convert
the max time seconds back to a human readable string for the
mode serializer. Returning a blank string is bad here.
</content>
</entry>
<entry>
<title>Fix years being offset from weeks (#1678).</title>
<updated>2019-07-04T16:30:23Z</updated>
<author>
<name>Matt Schatz</name>
</author>
<published>2019-07-04T16:30:23Z</published>
<link rel='alternate' type='text/html' href='https://www.cgit.space/~steering/inspircd++.git/commit/?id=3b8246ab07faa673bf4e11b8aa927a9d724aa7d3'/>
<id>urn:sha1:3b8246ab07faa673bf4e11b8aa927a9d724aa7d3</id>
<content type='text'>
Currently a duration of 52w will return a blank string.
When I added weeks to the calculations, I failed to update
the number of seconds to a year. As 365 days and 52 weeks
aren't the same, but the calculation needs to be consistent.</content>
</entry>
<entry>
<title>Add a function for displaying human-readable durations.</title>
<updated>2019-02-18T09:17:38Z</updated>
<author>
<name>Matt Schatz</name>
</author>
<published>2019-02-17T09:10:26Z</published>
<link rel='alternate' type='text/html' href='https://www.cgit.space/~steering/inspircd++.git/commit/?id=e02c22ff165c7b0dbe39343066a4167e94f5618e'/>
<id>urn:sha1:e02c22ff165c7b0dbe39343066a4167e94f5618e</id>
<content type='text'>
Add InspIRCd::DurationString() to take a time_t and return a string
with the duration in a human-readable format (ex: 1y20w2d3h5m9s).
</content>
</entry>
<entry>
<title>Only parse valid durations, don't treat invalid multipliers as seconds (#1538)</title>
<updated>2018-12-21T18:37:22Z</updated>
<author>
<name>linuxdaemon</name>
</author>
<published>2018-12-21T18:37:22Z</published>
<link rel='alternate' type='text/html' href='https://www.cgit.space/~steering/inspircd++.git/commit/?id=7530285740c2db1bc4457859b0d5f2436e0ed113'/>
<id>urn:sha1:7530285740c2db1bc4457859b0d5f2436e0ed113</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Move IsValidDuration into the core.</title>
<updated>2018-11-24T23:27:16Z</updated>
<author>
<name>Peter Powell</name>
</author>
<published>2018-11-24T23:27:16Z</published>
<link rel='alternate' type='text/html' href='https://www.cgit.space/~steering/inspircd++.git/commit/?id=cc5aff3e5a7d83eb0154faf1540fc74959a6f0e5'/>
<id>urn:sha1:cc5aff3e5a7d83eb0154faf1540fc74959a6f0e5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add missing special character for reversing color.</title>
<updated>2018-11-20T23:37:20Z</updated>
<author>
<name>Robby</name>
</author>
<published>2018-11-20T22:32:19Z</published>
<link rel='alternate' type='text/html' href='https://www.cgit.space/~steering/inspircd++.git/commit/?id=4c6d7a12ab58b55ef49fb1cf62b57c6ef7daad5d'/>
<id>urn:sha1:4c6d7a12ab58b55ef49fb1cf62b57c6ef7daad5d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix single backslashes in the MOTD erroneously being removed.</title>
<updated>2018-11-18T13:12:07Z</updated>
<author>
<name>Peter Powell</name>
</author>
<published>2018-11-18T13:12:07Z</published>
<link rel='alternate' type='text/html' href='https://www.cgit.space/~steering/inspircd++.git/commit/?id=1ec87c328f6ef2d9d64a2eb782cdd2916dd93d2d'/>
<id>urn:sha1:1ec87c328f6ef2d9d64a2eb782cdd2916dd93d2d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use arc4random_buf() instead of random() when available.</title>
<updated>2018-07-20T10:48:22Z</updated>
<author>
<name>Peter Powell</name>
</author>
<published>2018-07-20T10:43:41Z</published>
<link rel='alternate' type='text/html' href='https://www.cgit.space/~steering/inspircd++.git/commit/?id=ec6bdd1ae9b2b237332860fa0caeb10de7c9b866'/>
<id>urn:sha1:ec6bdd1ae9b2b237332860fa0caeb10de7c9b866</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add InspIRCd::IsHost for checking the validity of hostnames.</title>
<updated>2018-07-10T20:14:56Z</updated>
<author>
<name>Peter Powell</name>
</author>
<published>2018-06-29T10:28:19Z</published>
<link rel='alternate' type='text/html' href='https://www.cgit.space/~steering/inspircd++.git/commit/?id=87361360e67d105df148ba0daa52f1164ce1d15a'/>
<id>urn:sha1:87361360e67d105df148ba0daa52f1164ce1d15a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Improve support for MOTD escape codes.</title>
<updated>2018-04-22T22:38:13Z</updated>
<author>
<name>Peter Powell</name>
</author>
<published>2018-03-29T18:04:11Z</published>
<link rel='alternate' type='text/html' href='https://www.cgit.space/~steering/inspircd++.git/commit/?id=506344a903d3fa2fcb53f22a3a1c8174b1deb357'/>
<id>urn:sha1:506344a903d3fa2fcb53f22a3a1c8174b1deb357</id>
<content type='text'>
- Implement escapes for italic, monospace, and strikethrough.
- Use the escape codes in the example MOTDs to demonstrate their
  formatting effects.
- Remove support for octal escape codes. In modern computing octal
  is rarely used and is confusing for users who might confuse it
  for decimal.
</content>
</entry>
</feed>
