]> jfr.im git - irc/atheme/atheme-contrib-modules.git/log
irc/atheme/atheme-contrib-modules.git
10 months agores_query(3): use C_IN instead of C_ANY master origin/HEAD origin/master
Aaron Jones [Fri, 7 Jul 2023 18:02:22 +0000 (18:02 +0000)] 
res_query(3): use C_IN instead of C_ANY

Some resolvers will drop class ANY queries or reply with no data.
Perform an Internet-class query instead.

11 months agoAC_PROG_MKDIR_P is broken beyond repair; remove it
Aaron Jones [Fri, 26 May 2023 22:31:20 +0000 (22:31 +0000)] 
AC_PROG_MKDIR_P is broken beyond repair; remove it

11 months agoautoconf 2.71: using ${as_echo} is deprecated
Aaron Jones [Fri, 26 May 2023 22:30:52 +0000 (22:30 +0000)] 
autoconf 2.71: using ${as_echo} is deprecated

11 months agoautoreconf with autoconf 2.71
Aaron Jones [Fri, 26 May 2023 22:29:28 +0000 (22:29 +0000)] 
autoreconf with autoconf 2.71

15 months agoMerge pull request #60 from atheme/jess/sasl_blacklist-self
Aaron Jones [Fri, 3 Feb 2023 01:20:48 +0000 (01:20 +0000)] 
Merge pull request #60 from atheme/jess/sasl_blacklist-self

don't block users logging in as themself

15 months agodon't block users logging in as themself
jesopo [Thu, 2 Feb 2023 22:40:45 +0000 (22:40 +0000)] 
don't block users logging in as themself

2 years agosrc/os_kill.c: create a unique privilege for this command
Aaron Jones [Wed, 19 Jan 2022 19:58:03 +0000 (19:58 +0000)] 
src/os_kill.c: create a unique privilege for this command

Repurposing operserv:omode for this was a hack, and given the
potential abusability of this module, it should require its
own specific privilege.

2 years agons_freezeexpire.c: auto-drop frozen accounts after a given time (#52)
Jess Porter [Mon, 17 Jan 2022 18:53:16 +0000 (18:53 +0000)] 
ns_freezeexpire.c: auto-drop frozen accounts after a given time (#52)

2 years agoatheme-compat.h: connection_close_all_fds() is gone in 7.3
Aaron Jones [Sat, 7 Aug 2021 18:44:04 +0000 (18:44 +0000)] 
atheme-compat.h: connection_close_all_fds() is gone in 7.3

2 years agons_fregister, ns_forbid: do proper account name validity checks
Aaron Jones [Sun, 11 Jul 2021 10:50:57 +0000 (10:50 +0000)] 
ns_fregister, ns_forbid: do proper account name validity checks

The is_valid_nick() function will return false for all of the characters
that were being tested here, and there's no good reason to only test the
first character. Furthermore, we should be rejecting a lot more invalid
characters, such as period (.)

2 years agoUpdate my e-mail address
Aaron Jones [Tue, 8 Jun 2021 04:46:54 +0000 (04:46 +0000)] 
Update my e-mail address

2 years agoMerge pull request #46 from mniip/blacklist-logout-rename
Aaron Jones [Sat, 29 May 2021 18:54:23 +0000 (18:54 +0000)] 
Merge pull request #46 from mniip/blacklist-logout-rename

sasl_blacklist.c: hook into logouts and accountname changes as well

2 years agosasl_blacklist.c: depend on operserv/main
mniip [Thu, 27 May 2021 12:04:25 +0000 (15:04 +0300)] 
sasl_blacklist.c: depend on operserv/main

2 years agosasl_blacklist.c: refactor logging
mniip [Thu, 27 May 2021 11:55:26 +0000 (14:55 +0300)] 
sasl_blacklist.c: refactor logging

2 years agosasl_blacklist.c: hook into logouts and accountname changes as well
mniip [Wed, 26 May 2021 23:58:09 +0000 (02:58 +0300)] 
sasl_blacklist.c: hook into logouts and accountname changes as well

3 years agoTransition to independent build system and configure checks
Aaron Jones [Wed, 10 Mar 2021 09:20:08 +0000 (09:20 +0000)] 
Transition to independent build system and configure checks

Having to duplicate configure tests in all supported Atheme release and
development branches, to enable contrib modules to be built reliably on
all of our supported platforms, was quickly becoming untenable.

Move the checks to contrib's own configure script, which necessitates
importing some build system things from Atheme proper.

This will not be backported to Atheme 7.1 or earlier; those versions are
no longer supported. If this submodule is bumped in those branches, the
contrib modules will no longer build, and make will likely fail.

3 years agons_mxcheck & ns_mxcheck_async: fix usage of res_query(3)
Aaron Jones [Tue, 9 Mar 2021 08:41:44 +0000 (08:41 +0000)] 
ns_mxcheck & ns_mxcheck_async: fix usage of res_query(3)

Most platforms have these as enums, which are converted to int (for use
as arguments) by the compiler automatically. However, some platforms do
not have these as enums, and use macros to define their values instead.

The former platforms also have those macros to define them in terms of
the corresponding enum, so use the macros instead of the enums for
broader compatibility, defining them in terms of their enums when they
don't exist.

glibc2 and musl have enums and compatibility macros, uclibc and
uclibc-ng have enums only, and OpenBSD libc has macros only.

Fixes: 740371b4e2f48fbe8e24 ("Initial commit.")
3 years agoGitHub Actions: Coverity Scan: Use correct repo for version
Aaron Jones [Mon, 1 Mar 2021 22:26:11 +0000 (22:26 +0000)] 
GitHub Actions: Coverity Scan: Use correct repo for version

3 years agoGitHub Actions: Add Coverity Scan
Aaron Jones [Mon, 1 Mar 2021 21:37:42 +0000 (21:37 +0000)] 
GitHub Actions: Add Coverity Scan

3 years agoGitHub Actions: Add CI
Aaron Jones [Mon, 1 Mar 2021 21:37:33 +0000 (21:37 +0000)] 
GitHub Actions: Add CI

3 years agoRemove obsolete sockaddr_any union
Aaron Jones [Sat, 27 Feb 2021 15:47:54 +0000 (15:47 +0000)] 
Remove obsolete sockaddr_any union

3 years agoEnable building on 7.2
Aaron Jones [Sat, 30 Jan 2021 15:01:07 +0000 (15:01 +0000)] 
Enable building on 7.2

3 years agons_mxcheck_async: avoid crash with malformed e-mail addresses
Aaron Jones [Sat, 30 Jan 2021 14:58:17 +0000 (14:58 +0000)] 
ns_mxcheck_async: avoid crash with malformed e-mail addresses

3 years agons_mxcheck: avoid crash with malformed e-mail addresses
Aaron Jones [Sat, 30 Jan 2021 14:58:10 +0000 (14:58 +0000)] 
ns_mxcheck: avoid crash with malformed e-mail addresses

3 years agons_fregister: fix help message, pw length check, length errors
Aaron Jones [Tue, 19 Jan 2021 09:27:13 +0000 (09:27 +0000)] 
ns_fregister: fix help message, pw length check, length errors

3 years agoMerge pull request #42 from examknow/patch-1
Alyx [Fri, 30 Oct 2020 22:31:11 +0000 (17:31 -0500)] 
Merge pull request #42 from examknow/patch-1

LoveServ -> loveserv

3 years agoLoveServ -> loveserv
David Schultz [Fri, 30 Oct 2020 22:26:19 +0000 (17:26 -0500)] 
LoveServ -> loveserv

4 years agodnsbl.c: fix loading on v7.3+
Aaron Jones [Sat, 7 Dec 2019 03:29:56 +0000 (03:29 +0000)] 
dnsbl.c: fix loading on v7.3+

Due to atheme/atheme@ff79e69ba30f5790426b this module will no longer
work on Atheme version 7.3+. However, all is not lost, as this module
was ported to Atheme proper in that version anyway, where it does
continue to work. Load that module instead.

4 years agoAll files: Tidy up help strings, format tokens, wrapping, & 7.3 compat
Aaron Jones [Fri, 6 Dec 2019 14:24:41 +0000 (14:24 +0000)] 
All files: Tidy up help strings, format tokens, wrapping, & 7.3 compat

5 years agoAdapt for Atheme v7.3 codebase header file changes
Aaron Jones [Sun, 10 Mar 2019 18:59:50 +0000 (18:59 +0000)] 
Adapt for Atheme v7.3 codebase header file changes

The atheme.h in v7.3 includes all headers necessary, so we should only
include other Atheme headers if we are building for v7.2 or lower; not
only is including them pointless, but they no longer exist at the old
paths as of Atheme commit 81323dfcaa240ac5ca48

5 years agoUpdate for atheme/atheme@d9b514bf28618328252b99df36faed4b64aa6da2
Aaron Jones [Wed, 9 Jan 2019 02:23:19 +0000 (02:23 +0000)] 
Update for atheme/atheme@d9b514bf28618328252b99df36faed4b64aa6da2

5 years agons_listlogins.c: add conflict for nickserv/listlogins
Aaron Jones [Thu, 27 Dec 2018 04:31:35 +0000 (04:31 +0000)] 
ns_listlogins.c: add conflict for nickserv/listlogins

5 years agoMakefile: Don't assume -lresolv is present
Aaron Jones [Sun, 16 Dec 2018 20:29:58 +0000 (20:29 +0000)] 
Makefile: Don't assume -lresolv is present

This is used by the ns_mxcheck modules, but on non-Linux platforms, the
functionality is usually in the C library, not a separate resolv one.

5 years agoos_akillnicklist.c: various improvements
Aaron Jones [Sun, 29 Jul 2018 02:37:42 +0000 (02:37 +0000)] 
os_akillnicklist.c: various improvements

- Declare and assign variables at the same time when possible
- Test whether a K-Line has already been sent before doing any lookups
- Don't continue to do more lookups if we already have a match

5 years agoMerge pull request #37 from anarcat/broad-timeout
Aaron Jones [Fri, 27 Jul 2018 20:30:52 +0000 (20:30 +0000)] 
Merge pull request #37 from anarcat/broad-timeout

broader kill line with custom timeout

5 years agobroader kill line with custom timeout
Antoine Beaupré [Fri, 27 Jul 2018 14:20:27 +0000 (10:20 -0400)] 
broader kill line with custom timeout

The `os_klinechan.c` module is quite handy to deal with bad users, but
it is a little specific in the way it works. It bans the full
user@host hostmask and does so for a single day. For prolonged
botnet attacks, this is not very practical.

This patch broadens the banned hostmask to cover *all* users on the
attacker's IP address, so that rotating the username is not sufficient
to bypass the ban. This means more possible collateral damage, but I
think it's a good tradeoff considering we use this module to deal with
botnet attacks, for which we ban whole networks anyways.

Also, the timeout was hardcoded to one day. That seems awfully short
when dealing with prolonged attacks. Instead of hardcoding another
value, let's reuse the value from `SET KLINETIME` so that opers can
actually customize that setting.

5 years agosasl_blacklist.c: several small improvements
Aaron Jones [Sat, 30 Jun 2018 21:24:58 +0000 (21:24 +0000)] 
sasl_blacklist.c: several small improvements

- This module only works with Atheme v7.3, so if building against
  a lesser version, compile a stub module that complains about
  this instead of creating a compilation failure

  This would have bit us if we ever bumped modules/contrib/ to
  HEAD in the Atheme release/7.2 branch

- Use libathemecore memory allocator for storing new config
  entries with an intrusive node so that we don't have to check
  if mowgli_node_add() fails (or segfault otherwise)

- Make private variables compilation-unit-static

- Put function names on their own line

- Sprinkle some const-correctness everywhere

- Perform a service_find("saslserv") only once, on startup, and
  error out if it fails

- Depend on saslserv/main so that we are reloaded if it is

  Otherwise, given the above, mod_deinit() would call
  del_conf_item() on a stale pointer and probably segfault

- Collapse 2 almost identical functions for processing config
  entries into 1 function

- Collapse multiple instances of clearing a mowgli_list_t into 1
  function which does the same

- Indicate which configuration block the parameters are in when
  reporting errors with the configuration file

- Avoid some potential NULL dereferences

- Conform to Atheme v7.3 coding style (line wrapping, etc)

5 years agoREADME.md: Update for current state of Makefile
Aaron Jones [Sat, 30 Jun 2018 21:14:17 +0000 (21:14 +0000)] 
README.md: Update for current state of Makefile

5 years agoAll modules: Memory allocation fixups
Aaron Jones [Sat, 30 Jun 2018 21:08:36 +0000 (21:08 +0000)] 
All modules: Memory allocation fixups

Ensure we are using libathemecore's memory allocation functions and
also ensure we use the new sfree() function introduced in Atheme 7.3
if available.

5 years agoos_pingspam.c: use compile-time gettext macro
Aaron Jones [Sat, 30 Jun 2018 19:39:28 +0000 (19:39 +0000)] 
os_pingspam.c: use compile-time gettext macro

5 years agoatheme-compat.h: add MODFLAG_FAIL definition
Aaron Jones [Sat, 30 Jun 2018 19:08:51 +0000 (19:08 +0000)] 
atheme-compat.h: add MODFLAG_FAIL definition

5 years agocontrib-vendors.h: update URI for Freenode
Aaron Jones [Sat, 30 Jun 2018 19:01:46 +0000 (19:01 +0000)] 
contrib-vendors.h: update URI for Freenode

5 years agowumpus.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 18:59:36 +0000 (18:59 +0000)] 
wumpus.c: a few fixups

- Apply atheme/atheme@e1df27b9fbecc2267baa

5 years agoos_trace.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 18:57:38 +0000 (18:57 +0000)] 
os_trace.c: a few fixups

- Remove unnecessary forward declarations
- Make private variables compilation-unit-static
- Make a private function compilation-unit-static
- Remove struct typedefs to remove _t suffix
- Apply atheme/atheme@e1df27b9fbecc2267baa

5 years agoos_testproc.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 18:13:52 +0000 (18:13 +0000)] 
os_testproc.c: a few fixups

- Remove unnecessary forward declarations
- Apply atheme/atheme@e1df27b9fbecc2267baa

5 years agoos_testcmd.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 18:11:08 +0000 (18:11 +0000)] 
os_testcmd.c: a few fixups

- Remove unnecessary forward declarations
- Apply atheme/atheme@e1df27b9fbecc2267baa
- Move struct to only function it is used in

5 years agoos_tabletest.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 18:04:24 +0000 (18:04 +0000)] 
os_tabletest.c: a few fixups

- Remove unnecessary forward declarations
- Apply atheme/atheme@e1df27b9fbecc2267baa

5 years agoos_savechanmodes.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 18:02:14 +0000 (18:02 +0000)] 
os_savechanmodes.c: a few fixups

- Remove unnecessary forward declarations
- Apply atheme/atheme@e1df27b9fbecc2267baa

5 years agoos_resolve.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 18:01:49 +0000 (18:01 +0000)] 
os_resolve.c: a few fixups

- Apply atheme/atheme@e1df27b9fbecc2267baa

5 years agoos_procwatch.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 18:00:52 +0000 (18:00 +0000)] 
os_procwatch.c: a few fixups

- Remove unnecessary forward declarations
- Make private variables compilation-unit-static
- Apply atheme/atheme@e1df27b9fbecc2267baa
- Apply atheme/atheme@8d44940363c0a5b72164

5 years agoos_pingspam.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 17:59:31 +0000 (17:59 +0000)] 
os_pingspam.c: a few fixups

- Remove unnecessary forward declarations

  This requires moving some functions around

- Make private variables compilation-unit-static
- Use bool instead of int for a boolean variable
- Apply atheme/atheme@e1df27b9fbecc2267baa
- Mark unused variable in mod_deinit

5 years agoos_modeall.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 17:31:37 +0000 (17:31 +0000)] 
os_modeall.c: a few fixups

- Remove unnecessary forward declarations
- Apply atheme/atheme@e1df27b9fbecc2267baa

5 years agoos_klinechan.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 17:31:05 +0000 (17:31 +0000)] 
os_klinechan.c: a few fixups

- Remove unnecessary forward declarations
- Apply atheme/atheme@e1df27b9fbecc2267baa

5 years agoos_kill.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 17:30:42 +0000 (17:30 +0000)] 
os_kill.c: a few fixups

- Remove unnecessary forward declarations
- Apply atheme/atheme@e1df27b9fbecc2267baa

5 years agoos_joinmon.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 17:29:57 +0000 (17:29 +0000)] 
os_joinmon.c: a few fixups

- Remove unnecessary forward declarations
- Make private variables compilation-unit-static
- Apply atheme/atheme@e1df27b9fbecc2267baa
- Apply atheme/atheme@8d44940363c0a5b72164

5 years agoos_helpme.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 17:29:40 +0000 (17:29 +0000)] 
os_helpme.c: a few fixups

- Remove unnecessary forward declarations
- Apply atheme/atheme@e1df27b9fbecc2267baa

5 years agoos_defcon.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 17:28:56 +0000 (17:28 +0000)] 
os_defcon.c: a few fixups

- Remove unnecessary forward declarations
- Apply atheme/atheme@e1df27b9fbecc2267baa
- Fix grammar error

5 years agoon_db_save.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 17:28:11 +0000 (17:28 +0000)] 
on_db_save.c: a few fixups

- Remove unnecessary forward declarations

5 years agons_sendpassmail.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 17:27:32 +0000 (17:27 +0000)] 
ns_sendpassmail.c: a few fixups

- Remove unnecessary forward declarations
- Apply atheme/atheme@e1df27b9fbecc2267baa

5 years agons_mxcheck_async.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 17:25:53 +0000 (17:25 +0000)] 
ns_mxcheck_async.c: a few fixups

- Remove unnecessary forward declarations

  Requires moving a function down

- Reindent using tabs

5 years agons_mxcheck.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 17:24:09 +0000 (17:24 +0000)] 
ns_mxcheck.c: a few fixups

- Remove unnecessary forward declarations

  Requires moving a function down

- Reindent using tabs

5 years agons_listlogins.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 16:49:53 +0000 (16:49 +0000)] 
ns_listlogins.c: a few fixups

- Remove unnecessary forward declarations
- Apply atheme/atheme@e1df27b9fbecc2267baa

5 years agons_goodmail.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 16:45:42 +0000 (16:45 +0000)] 
ns_goodmail.c: a few fixups

- Remove unnecessary forward declarations
- Make private variables compilation-unit-static
- Apply atheme/atheme@e1df27b9fbecc2267baa
- Apply atheme/atheme@8d44940363c0a5b72164

5 years agons_generatepass.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 16:33:50 +0000 (16:33 +0000)] 
ns_generatepass.c: a few fixups

- Remove unnecessary forward declarations
- Apply atheme/atheme@e1df27b9fbecc2267baa

5 years agons_generatehash.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 16:33:34 +0000 (16:33 +0000)] 
ns_generatehash.c: a few fixups

- Remove unnecessary forward declarations
- Apply atheme/atheme@e1df27b9fbecc2267baa

5 years agons_fregister.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 16:33:16 +0000 (16:33 +0000)] 
ns_fregister.c: a few fixups

- Remove unnecessary forward declarations
- Apply atheme/atheme@e1df27b9fbecc2267baa

5 years agons_forbid.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 16:32:54 +0000 (16:32 +0000)] 
ns_forbid.c: a few fixups

- Remove unnecessary forward declarations
- Apply atheme/atheme@e1df27b9fbecc2267baa

5 years agons_fenforce.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 16:32:39 +0000 (16:32 +0000)] 
ns_fenforce.c: a few fixups

- Remove unnecessary forward declarations
- Apply atheme/atheme@e1df27b9fbecc2267baa

5 years agons_ajoin.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 16:32:15 +0000 (16:32 +0000)] 
ns_ajoin.c: a few fixups

- Remove unnecessary forward declarations
- Apply atheme/atheme@e1df27b9fbecc2267baa

5 years agoms_fsend.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 16:31:37 +0000 (16:31 +0000)] 
ms_fsend.c: a few fixups

- Remove unnecessary forward declarations
- Remove unnecessary return statement from end of function
- Apply atheme/atheme@e1df27b9fbecc2267baa

5 years agomlocktweaker.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 16:30:44 +0000 (16:30 +0000)] 
mlocktweaker.c: a few fixups

- Remove unnecessary forward declarations
- Make private variables compilation-unit-static

5 years agoircd_loveserv.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 16:30:13 +0000 (16:30 +0000)] 
ircd_loveserv.c: a few fixups

- Make private variables compilation-unit-static
- Apply atheme/atheme@e1df27b9fbecc2267baa

5 years agoircd_catserv.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 16:29:38 +0000 (16:29 +0000)] 
ircd_catserv.c: a few fixups

- Remove unnecessary forward declarations
- Make private variables compilation-unit-static
- Apply atheme/atheme@e1df27b9fbecc2267baa

5 years agoircd_announceserv.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 16:28:52 +0000 (16:28 +0000)] 
ircd_announceserv.c: a few fixups

- Remove unnecessary forward declarations
- Remove unnecessary return statement from end of function
- Make private variables compilation-unit-static
- Make a private function compilation-unit-static
- Apply atheme/atheme@e1df27b9fbecc2267baa

5 years agogs_roulette.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 16:26:15 +0000 (16:26 +0000)] 
gs_roulette.c: a few fixups

- Remove unnecessary forward declarations
- Apply atheme/atheme@e1df27b9fbecc2267baa

5 years agogen_vhostonreg.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 16:25:07 +0000 (16:25 +0000)] 
gen_vhostonreg.c: a few fixups

- Remove unnecessary forward declarations

5 years agogen_listenerdemo.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 16:24:46 +0000 (16:24 +0000)] 
gen_listenerdemo.c: a few fixups

- Make private variables compilation-unit-static

5 years agogen_echoserver.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 16:24:34 +0000 (16:24 +0000)] 
gen_echoserver.c: a few fixups

- Make private variables compilation-unit-static

5 years agodnsbl.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 16:23:55 +0000 (16:23 +0000)] 
dnsbl.c: a few fixups

- Remove unnecessary forward declarations

  Requires moving some functions around

- Make private variables compilation-unit-static
- Apply atheme/atheme@e1df27b9fbecc2267baa

5 years agocs_userinfo.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 16:20:43 +0000 (16:20 +0000)] 
cs_userinfo.c: a few fixups

- Remove unnecessary forward declarations
- Remove unnecessary return statement from end of function
- Apply atheme/atheme@e1df27b9fbecc2267baa

5 years agocs_updown.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 16:20:18 +0000 (16:20 +0000)] 
cs_updown.c: a few fixups

- Remove unnecessary forward declarations
- Apply atheme/atheme@e1df27b9fbecc2267baa

5 years agocs_ping.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 16:19:37 +0000 (16:19 +0000)] 
cs_ping.c: a few fixups

- Remove unnecessary forward declarations
- Remove unnecessary return statement from end of function
- Apply atheme/atheme@e1df27b9fbecc2267baa

5 years agocs_fregister.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 16:18:49 +0000 (16:18 +0000)] 
cs_fregister.c: a few fixups

- Remove unnecessary forward declarations
- Apply atheme/atheme@e1df27b9fbecc2267baa

5 years agocs_badwords.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 16:17:36 +0000 (16:17 +0000)] 
cs_badwords.c: a few fixups

- Remove unnecessary forward declarations
- Make a private variable compilation-unit-static
- Apply atheme/atheme@e1df27b9fbecc2267baa
- Apply atheme/atheme@8d44940363c0a5b72164

5 years agocs_access_alias.c: a few fixups
Aaron Jones [Sat, 30 Jun 2018 16:15:21 +0000 (16:15 +0000)] 
cs_access_alias.c: a few fixups

- Move a typedef to the top of the file
- Apply atheme/atheme@e1df27b9fbecc2267baa

5 years agobacktrace.c: complete re-write
Aaron Jones [Sat, 30 Jun 2018 16:04:18 +0000 (16:04 +0000)] 
backtrace.c: complete re-write

- Use sigaction() instead of signal() to establish signal handlers

  This also gets us more information about what caused the signal

  Portability                                                       signal(2)
    The only portable use of signal() is to set a signal's disposition to
    SIG_DFL or SIG_IGN.  The semantics when using signal() to establish a
    signal handler vary across systems (and  POSIX.1  explicitly  permits
    this variation); *do not use it for this purpose*.

- Intercept SIGBUS, SIGFPE and SIGILL in addition to SIGSEGV

- Log to a dedicated file if possible to minimise the amount of additional
  work we perform after receipt of a fatal abnormal signal; stderr otherwise

  Note in particular we don't slog() because that may end up going down the
  socket to the IRCd and we can't be sure that e.g. the fault wasn't in a
  protocol module or something along those lines where attempting to do this
  would result in a further fault

- Abort after logging the problem because continuing on is dangerous

- Try to enable coredumps on modinit if possible, and complain otherwise

  When we abort at the end of the signal handler, a coredump may be generated

- Block all signals during execution of the signal handler

- Restore the previous signal dispositions on moddeinit

- Compile the module itself even if the platform does not support it

  This will always result in a module with a MAPI header, which will just
  complain on load that it is not usable if on the wrong platform

5 years agons_waitreg: conflict with nickserv/waitreg from 7.3
Aaron Jones [Sat, 30 Jun 2018 02:20:50 +0000 (02:20 +0000)] 
ns_waitreg: conflict with nickserv/waitreg from 7.3

6 years agoAdd sasl_blacklist.c
Janik Kleinhoff [Thu, 10 May 2018 13:20:13 +0000 (13:20 +0000)] 
Add sasl_blacklist.c

This is taken from freenode's modified Atheme repository, specifically:

> commit 407bf43031b240b27833d69718d90b57a40c3aa2
> Author: mniip <redacted>
> Date:   Thu Jul 21 18:13:17 2016 +0300

with some minor adjustments to build with current Atheme.

This addresses freenode/atheme#15.

6 years agoMakefile: add resolv library (for ns_mxcheck_async)
Aaron Jones [Sun, 25 Mar 2018 10:52:40 +0000 (11:52 +0100)] 
Makefile: add resolv library (for ns_mxcheck_async)

6 years agoMakefile: clean up
Aaron Jones [Fri, 2 Mar 2018 22:15:56 +0000 (22:15 +0000)] 
Makefile: clean up

- Remove unnecessary VCS header detritus

- Indent LIBS assignment to line up with the others

- List source files explicitly

  This prevents the modification of any one file from causing
  make(1) to recompile all modules, and results in a deterministic
  build order.

  The downside is that if a new module is added, the Makefile will
  have to be edited too; but this is no different to the Makefile
  for any other module subdirectory in Atheme proper, and is hardly
  a burden.

6 years agobacktrace.c: don't use reserved name for function
Aaron Jones [Fri, 2 Mar 2018 22:07:22 +0000 (22:07 +0000)] 
backtrace.c: don't use reserved name for function

6 years agoMake mod_(de)init static
Aaron Jones [Fri, 2 Mar 2018 21:07:34 +0000 (21:07 +0000)] 
Make mod_(de)init static

6 years agoMove mod_(de)init to the bottom of the files
Aaron Jones [Fri, 2 Mar 2018 21:04:38 +0000 (21:04 +0000)] 
Move mod_(de)init to the bottom of the files

6 years agoPut function names on their own line
Aaron Jones [Fri, 2 Mar 2018 21:00:15 +0000 (21:00 +0000)] 
Put function names on their own line

6 years agoTidy up file headers
Aaron Jones [Fri, 2 Mar 2018 20:40:01 +0000 (20:40 +0000)] 
Tidy up file headers

6 years agoRemove editor detritus
Aaron Jones [Fri, 2 Mar 2018 20:32:50 +0000 (20:32 +0000)] 
Remove editor detritus

6 years agoTidy up vendor declaration macros, consolidate vendor strings
Aaron Jones [Fri, 2 Mar 2018 22:13:02 +0000 (22:13 +0000)] 
Tidy up vendor declaration macros, consolidate vendor strings

6 years agoos_testproc.c: use atheme-compat.h defines
Aaron Jones [Fri, 2 Mar 2018 18:19:10 +0000 (18:19 +0000)] 
os_testproc.c: use atheme-compat.h defines

6 years agoos_tabletest.c: use atheme-compat.h function
Aaron Jones [Fri, 2 Mar 2018 18:18:55 +0000 (18:18 +0000)] 
os_tabletest.c: use atheme-compat.h function

6 years agons_sendpassmail.c: use atheme-compat.h defines / functions
Aaron Jones [Fri, 2 Mar 2018 18:18:33 +0000 (18:18 +0000)] 
ns_sendpassmail.c: use atheme-compat.h defines / functions