summaryrefslogtreecommitdiff
path: root/src/misc.cpp
AgeCommit message (Collapse)Author
2024-06-24Rework how CTCP messages are sent and received.Sadie Powell
2024-03-19Use paths relative to data/conf in the config file.Sadie Powell
This was done in some places already but not consistently. Closes #349.
2024-03-19Allow using absolute paths in more places.Sadie Powell
2024-03-18Use clock_gettime if it is available.Sadie Powell
2024-03-11Reject registrations and password changes if password encryption fails.Sadie Powell
2024-03-11Replace convertTo/stringify with non-throwing alternatives.Sadie Powell
Having these throw is terrible for ergonomics and there are loads of places where the exception was either silently ignored or not handled at all. Having a function which returns an optional and another that returns a default works a lot better imo.
2024-03-07Use the C++11 random number generator instead of rand().Sadie Powell
This is safer, faster, and doesn't require seeding.
2024-02-29If a user runs an invalid command try to suggest a valid one.Sadie Powell
2024-02-27Remove redundant uses of const.Sadie Powell
2024-02-27Simplify several boolean expressions.Sadie Powell
2024-02-26Fix some coding style issues.Sadie Powell
2024-01-04Update the copyright headers for 2024.Sadie Powell
2023-10-12Use a more human readable datetime format.Sadie Powell
2023-10-11Start migrating to range-based for loops.Sadie Powell
2023-08-06Merge branch 2.0 into 2.1.Sadie Powell
2023-07-11Allow Anope to look up multiple DNS results.Sadie Powell
For fixing bug 1756.
2022-12-31Merge branch '2.0' into 2.1.Sadie Powell
2022-12-31Update the copyright headers for 2023.Sadie Powell
2022-01-13Document the sysconf header file.Sadie Powell
2022-01-12Merge branch '2.0' into 2.1.Sadie Powell
2022-01-06Update the copyright headers for 2022.Sadie Powell
2022-01-04Use C++11 header names instead of their deprecated equivalents.Sadie Powell
2022-01-04Replace all uses of push_back with emplace_back.Sadie Powell
2022-01-04Use C++11 default initializers and destructors where possible.Sadie Powell
2022-01-04Use C++11 style class/struct initialisation.Sadie Powell
2021-08-01Merge branch '2.0' into 2.1.Sadie Powell
2021-06-17Fix various spelling issues (#274).Josh Soref
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>.
2021-02-18Merge branch '2.0' into 2.1.Sadie Powell
2021-01-07Update copyright to 2021.Robby
This was done with: find docs/ include/ language/ modules/ src/ *.* Config -exec sed -i 's/-20.. Anope Team/-2021 Anope Team/i' {} \;
2020-09-28Remove nickserv/getpass and Anope::Decrypt.Sadie Powell
There is no point having these now plain text passwords are deprecated.
2020-09-10Fix -Wclass-memaccess warning:miwob
/anope/src/misc.cpp: In function ‘Anope::string Anope::Resolve(const Anope::string&, int)’: /anope/src/misc.cpp:742:60: warning: ‘void* memcpy(void*, const void*, size_t)’ copying an object of non-trivial type ‘union sockaddrs’ from an array of ‘struct sockaddr’ [-Wclass-memaccess] memcpy(&addr, addrresult->ai_addr, addrresult->ai_addrlen); ^ In file included from /anope/include/users.h:21, from /anope/include/bots.h:12, from /anope/include/regchannel.h:18, from /anope/include/config.h:16, from /anope/src/misc.cpp:16: /anope/include/sockets.h:27:18: note: ‘union sockaddrs’ declared here union CoreExport sockaddrs ^~~~~~~~~
2020-01-04Update copyright to 2020.Robby
This was done with: find docs/ include/ language/ modules/ src/ *.* Config -exec sed -i 's/-20.. Anope Team/-2020 Anope Team/i' {} \;
2019-01-01Update copyright to 2019.Robby
This was done with: find docs/ include/ language/ modules/ src/ *.* Config -exec sed -i 's/-20.. Anope Team/-2019 Anope Team/i' {} \;
2018-04-25Update copyright to 2018.Robby
This was done with: find docs/ include/ language/ modules/ src/ *.* Config -exec sed -i 's/-20.. Anope Team/-2018 Anope Team/i' {} \;
2017-01-17Cleanup some excess whitespaces and tabs, and fix a few typos along the way.Robby
2017-01-16Update copyright to 2017.Robby
This was done with: find docs/ include/ language/ modules/ src/ *.* Config -exec sed -i 's/-20.. Anope Team/-2017 Anope Team/i' {} \; Added missing copyright headers to files that didn't have it yet.
2016-07-03#1680: fix Anope::Duration with one year durationsAdam
2016-04-21Optionally strip variable build date from compiled programDominic Hargreaves
To aid build reproducibility, don't include the build date/time if -DREPRODUCIBLE_BUILD is defined. Based on the patch provided by Alexis Bienvenüe in the Debian report. Bug-Debian: https://bugs.debian.org/820152 Patch-Name: reproducible_datetime.diff
2016-01-28Update copyright to 2016. This was done with:Robby
find include/ src/ lang/ docs/ modules/ *.* Config -exec sed -i 's/-20.. Anope Team/-2014 Anope Team/i' {} \; Added missing copyright headers to files that didn't have it yet. Fixed some whitespace and blank lines along the way.
2015-02-03Make module version system workAdam
2014-01-01Update copyright to 2014. This was done with:Adam
find include/ src/ lang/ docs/ modules/ *.* Config -exec sed -i 's/-20.. Anope Team/-2014 Anope Team/i' {} \;
2013-10-05Always show expire time for nicks in /ns info to opers, even if the user is ↵Adam
online Make Anope::strftime show "now" if the time is now Fix typo in nickalias.cpp for the type of the last_seen field, spotted by grawity
2013-09-27Replace this silly random code generation code with something more sane lookingAdam
2013-09-27Translate strftime correctlyAdam
2013-09-27Align info formatters with translated keys?Adam
2013-09-27Translate listformatter properlyAdam
2013-09-27Fix various commands to properly report a given expiry time is invalidAdam
2013-07-01Change extensible keys to require explicitly having a type defined for it. ↵Adam
Completely modularize more features like bs_kick, entrymsg, log, mode, etc. Move fantasy to its own module. Move greet to its own module.
2013-05-27Initially attach all modules to all events, and detach them as the events ↵Adam
are run if they are not implemented per module
2013-05-26Get rid of the remaining references in the core to specific services. Move ↵Adam
more stuff out of the core to the proper modules.