srvx.git
17 years agoUpdate version tag for 1.3.1 release. v1.3.1
Michael Poole [Sun, 14 May 2006 02:54:24 +0000 (02:54 +0000)]
Update version tag for 1.3.1 release.

configure.in: Update version tag for 1.3.1 release.
git-archimport-id: srvx@srvx.net--2006/srvx--devo--1.3--patch-15

17 years agoMake some ChanServ ban checks see through hidden hosts.
Michael Poole [Tue, 2 May 2006 02:46:39 +0000 (02:46 +0000)]
Make some ChanServ ban checks see through hidden hosts.

src/chanserv.c (handle_join): Make this function see through hidden
    hosts when matching users against bans.  Add comment before the
    non-burst section; remove a redundant burst check there.
  (handle_auth): See through hidden hosts when checking against active
    bans.  Inactive ban check keeps MATCH_VISIBLE since bans on the true
    hostname should have already been applied.
  (handle_nick_change): Same as handle_auth.
git-archimport-id: srvx@srvx.net--2006/srvx--devo--1.3--patch-14

17 years agoFix visible matching for fake and +x-hidden hosts.
Michael Poole [Sat, 29 Apr 2006 03:11:35 +0000 (03:11 +0000)]
Fix visible matching for fake and +x-hidden hosts.

src/tools.c (user_matches_glob): Use correct test to determine whether
    the user's host is hidden.
git-archimport-id: srvx@srvx.net--2006/srvx--devo--1.3--patch-13

18 years agoFix a +o mode parsing error.
Michael Poole [Fri, 7 Apr 2006 00:56:38 +0000 (00:56 +0000)]
Fix a +o mode parsing error.

src/proto-p10.c (mod_chanmode_parse): Check that the input argument after
    +o is a valid one.
git-archimport-id: srvx@srvx.net--2006/srvx--devo--1.3--patch-12

18 years agoFix some IPv6 address compatibility issues.
Michael Poole [Thu, 6 Apr 2006 02:19:47 +0000 (02:19 +0000)]
Fix some IPv6 address compatibility issues.

src/proto-p10.c (irc_p10_pton): Mark valid IPv4 addresses as v4-mapped.
  (irc_p10_ntop): Emit invalid IPs as AAAAAA (but it could be _ for +6
    flagged hubs).
git-archimport-id: srvx@srvx.net--2006/srvx--devo--1.3--patch-11

18 years agoFix a possible warning without debugging.
Michael Poole [Wed, 5 Apr 2006 02:07:30 +0000 (02:07 +0000)]
Fix a possible warning without debugging.

src/alloc-slab.c (slab_unalloc): If assert() is #define'd to be empty,
    then size is unused.  Include a (void)size to quash a warning.
git-archimport-id: srvx@srvx.net--2006/srvx--devo--1.3--patch-10

18 years agoFix hostmask error from last year's patch-28.
Michael Poole [Wed, 5 Apr 2006 02:02:21 +0000 (02:02 +0000)]
Fix hostmask error from last year's patch-28.

src/proto-common.c (generate_hostmask): When generating a strict hostmask
    not by IP, we should keep the original hostname.
git-archimport-id: srvx@srvx.net--2006/srvx--devo--1.3--patch-9

18 years agoFix compilation error with slab allocator and no debugging.
Michael Poole [Wed, 5 Apr 2006 01:59:54 +0000 (01:59 +0000)]
Fix compilation error with slab allocator and no debugging.

src/alloc-slab.c (verify): Undefine as a macro before defining as a
    function.
git-archimport-id: srvx@srvx.net--2006/srvx--devo--1.3--patch-8

18 years agoFix backtracking bug after an escaped character.
Michael Poole [Wed, 5 Apr 2006 00:24:50 +0000 (00:24 +0000)]
Fix backtracking bug after an escaped character.

src/tools.c (match_ircglob): Fix backtracking behavior when an escaped
    character did not match.
git-archimport-id: srvx@srvx.net--2006/srvx--devo--1.3--patch-7

18 years agoAdvise the kernel that we will scan DB files sequentially.
Michael Poole [Wed, 5 Apr 2006 00:11:31 +0000 (00:11 +0000)]
Advise the kernel that we will scan DB files sequentially.

src/recdb.c (parse_database): Advise the kernel that we will scan the
    recdb file sequentially, just in case it cannot notice the access
    pattern on its own.
git-archimport-id: srvx@srvx.net--2006/srvx--devo--1.3--patch-6

18 years agoCorrectly implement AsLL pong.
Michael Poole [Wed, 5 Apr 2006 00:09:48 +0000 (00:09 +0000)]
Correctly implement AsLL pong.

src/proto-p10.c (irc_pong_asll): New function.
  (cmd_ping): Use it.
git-archimport-id: srvx@srvx.net--2006/srvx--devo--1.3--patch-5

18 years agoAdd missing underscore in translation key string.
Michael Poole [Wed, 5 Apr 2006 00:08:04 +0000 (00:08 +0000)]
Add missing underscore in translation key string.

src/mod-helpserv.c (helpserv_usermsg): Add a missing underscore between
    REQUEST and NOT.
git-archimport-id: srvx@srvx.net--2006/srvx--devo--1.3--patch-4

18 years agoUpdate configure.in; support both baz and tla; avoid using dirent.
Michael Poole [Wed, 5 Apr 2006 00:05:59 +0000 (00:05 +0000)]
Update configure.in; support both baz and tla; avoid using dirent.

configure.in: Remove AC_PROG_RANLIB since we never use ranlib.  Add
    AC_PROG_LIBTOOL since we do use libtool.  Set GNU_ARCH and
    HAS_GNU_ARCH based on whether the system has baz or tla.  Do not
    check for dirent.d_type.

src/Makefile.am: Make the "checkversion" target conditional on
    HAS_GNU_ARCH, and use the detected $(GNU_ARCH).

src/helpfile.c (language_read): Report error text when unable to open a
    language directory.
  (language_read_list): Always stat the language entry to determine
    whether it is a directory; Cygwin has no dirent.d_type and ReiserFS
    has a broken one.
git-archimport-id: srvx@srvx.net--2006/srvx--devo--1.3--patch-3

18 years agoUpdate ChangeLog (again?!), ltmain.sh and rx/Makefile.in
Michael Poole [Wed, 5 Apr 2006 00:00:57 +0000 (00:00 +0000)]
Update ChangeLog (again?!), ltmain.sh and rx/Makefile.in

ChangeLog: Update again (it didn't take, for some strange reason).

ltmain.sh: Update to current version.

rx/Makefile.in: Regenerate to match.
git-archimport-id: srvx@srvx.net--2006/srvx--devo--1.3--patch-2

18 years agoRotate ChangeLog for the new year's archive.
Michael Poole [Tue, 4 Apr 2006 23:58:31 +0000 (23:58 +0000)]
Rotate ChangeLog for the new year's archive.

ChangeLog: Update for the new year's archive.
git-archimport-id: srvx@srvx.net--2006/srvx--devo--1.3--patch-1

18 years agoUpdate rx/Makefile.in for current automake.
Michael Poole [Fri, 23 Dec 2005 03:14:44 +0000 (03:14 +0000)]
Update rx/Makefile.in for current automake.

rx/Makefile.in: Update to use the same version of automake as the
    project's other Makefile.in files.
git-archimport-id: srvx@srvx.net--2005-srvx/srvx--devo--1.3--patch-36

18 years agoDefault to not trimming users on vacation.
Michael Poole [Fri, 23 Dec 2005 03:11:09 +0000 (03:11 +0000)]
Default to not trimming users on vacation.

chanserv.c (cmd_trim_users): New argument to indicate whether users on
    vacation should be included.
  (cmd_trim): Parse an extra option to control that argument.

chanserv.help: Document this change.
git-archimport-id: srvx@srvx.net--2005-srvx/srvx--devo--1.3--patch-35

18 years agoUpdate config.guess and config.sub
Michael Poole [Fri, 23 Dec 2005 03:06:55 +0000 (03:06 +0000)]
Update config.guess and config.sub

config.guess: Update to support newer targets.
config.sub: Likewise.
git-archimport-id: srvx@srvx.net--2005-srvx/srvx--devo--1.3--patch-34

18 years agoFixes for LP64 models; announce IPv6 support.
Michael Poole [Thu, 17 Nov 2005 20:43:26 +0000 (20:43 +0000)]
Fixes for LP64 models; announce IPv6 support.

src/alloc-slab.c (SMALL_CUTOFF): Adjust to a multiple of 8.

src/alloc-srvx.c (srvx_malloc): Fix format string for LP64.

src/md5.h (UINT4): Fix typedef for LP64.

src/opserv.c (cmd_warn): Fix whitespace.

src/proto-p10.c (irc_server): Announce IPv6 support.
git-archimport-id: srvx@srvx.net--2005-srvx/srvx--devo--1.3--patch-33

18 years agoAvoid leaking information through ChanServ's ban matching.
Michael Poole [Tue, 1 Nov 2005 00:37:44 +0000 (00:37 +0000)]
Avoid leaking information through ChanServ's ban matching.

src/common.h (user_matches_glob): Convert last argument to be flags.

src/tools.c (user_matches_glob): Reorder tests to properly implement
    the MATCH_VISIBLE flag.

src/chanserv.c: Update callers of user_matches_glob() to set
    the MATCH_VISIBLE flag (in addition to MATCH_USENICK).

src/opserv.c: Update callers of user_matches_glob() to pass the
    MATCH_USENICK flag.
git-archimport-id: srvx@srvx.net--2005-srvx/srvx--devo--1.3--patch-32

18 years agoHandle default oplevels.
Michael Poole [Tue, 1 Nov 2005 00:23:14 +0000 (00:23 +0000)]
Handle default oplevels.

src/chanserv.c (cmd_mode): Calculate base oplevel as 1 plus one point
    for each access level below owner.
  (chan_opt_modes): Add new argument for mod_chanmode_parse().
  (chanserv_conf_read): Likewise.
  (chanserv_channel_read): Likewise.

src/hash.c (AddChannel): Likewise.
  (AddChannelUser): Set oplevel by default.

src/hash.h (MAXOPLEVEL): New define value.
  (modeNode): Shrink modes and oplevel fields.

src/opserv.c (cmd_chaninfo): Fix indentation; show oplevel after
    nickname rather than before it.

src/proto.h (mod_chanmode_parse): Declare new parameter.

src/proto-bahamut.c (mod_chanmode_parse): Add new parameter (and
    ignore it).

src/proto-common.c (mod_chanmode): Find the default oplevels for
    parsing the mode change.

src/proto-p10.c (create_desc): Remove oplevel field.
  (join_helper): Do not try to set oplevel for new modeNode.
  (parse_foreach): Do not bother parsing oplevels in JOIN, since they
    are no longer used.
  (mod_chanmode_parse): Add new parameter and use it to determine the
    oplevel to set when a valid oplevel one is not specified.
git-archimport-id: srvx@srvx.net--2005-srvx/srvx--devo--1.3--patch-31

18 years agoDefault ?block (etc) to G-line by IP; fix a buffer issue.
Michael Poole [Thu, 13 Oct 2005 02:20:55 +0000 (02:20 +0000)]
Default ?block (etc) to G-line by IP; fix a buffer issue.

src/opserv.c (opserv_block): Rewrite to block by IP rather than
    hostname.
  (opserv_new_user_check): Avoid overrunning the target buffer.
git-archimport-id: srvx@srvx.net--2005-srvx/srvx--devo--1.3--patch-30

18 years agoInitial oplevel support.
Michael Poole [Sat, 8 Oct 2005 14:56:31 +0000 (14:56 +0000)]
Initial oplevel support.

src/proto-p10.c: Fix a few bugs and compile errors in oplevel code.

Patches applied:

 * sp@gamesurge.net--2005/srvx--sp--1.3--patch-1
   Oplevel support

 * sp@gamesurge.net--2005/srvx--sp--1.3--patch-2
   Oplevel support (part 2)
git-archimport-id: srvx@srvx.net--2005-srvx/srvx--devo--1.3--patch-29

18 years agoAdd IPv6 support.
Michael Poole [Sat, 8 Oct 2005 14:33:12 +0000 (14:33 +0000)]
Add IPv6 support.

configure.in: Check for struct sockaddr.sa_len and struct addrinfo.
    Also check for freeaddrinfo, getaddrinfo and getnameinfo.

src/common.h: Define irc_in_addr and macros to operate on it.  Declare
    irc_ntop(), irc_ntop_mask(), irc_pton(), irc_check_mask() and
    irc_ntoa().  Remove declaration for parse_ipmask() and undefine
    INADDR_NONE, INADDR_LOOPBACK and MATCH_IPMASK().

src/compat.h (struct addrinfo): Define if it and some flags if not
    defined by the system.
  (getaddrinfo): Declare if necessary.
  (getnameinfo): Likewise.
  (freeaddrinfo): Likewise.

src/compat.c (memcpy): Do not try to fall back onto bcopy.
  (getaddrinfo): Define if it is not defined by the system.
  (freeaddrinfo): Likewise.

src/gline.c (gline_alternate_target): Gut in preparation of a
    necessary rewrite.  Blah.

src/hash.h (struct userNode): Change type of ip field.

src/ioset.c (ioset_connect): Update to support non-IPv4 protocols.

src/main.c (uplink_insert): Update to support non-IPv4 protocols.

src/mod-snoop.c (snoop_new_user): Use irc_ntoa() instead of inet_ntoa().

src/mod-sockcheck.c (sockcheck_cache_info): Update address field type
    and length of hostname field.
  (sockcheck_conf): Update type of local_addr.
  (sockcheck_issue_gline): Update to use irc_ntop().
  (expand_var): Get client IPv4 address from its new place.
  (sockcheck_decide): Do not print the IP twice.
  (sockcheck_begin_test): Remove unnecessary typecast.
  (sockcheck_start_client): Do not print the IP twice.
  (sockcheck_queue_address): Use irc_in_addr_t and irc_ntoa() to form
    the target hostname.
  (cmd_hostscan): Update manipulation functions to use new macros and
    functions for irc_in_addr_t.
  (cmd_clearhost): Likewise.
  (sockcheck_new_user): Likewise.
  (sockcheck_read_conf): Use getaddrinfo() instead of IPv4-only
    functions.

src/nickserv.c (cmd_register): Use newer validity checks for IP.

src/opserv.c (IDENT_DATA): Use irc_ntoa() instead of inet_ntoa().
  (struct opservDiscrim): Update ip_mask and ip_mask_bits type.
  (cmd_whois): Use irc_ntoa() instead of inet_ntoa().
  (opserv_new_user_check): Use irc_ntop() instead of inet_ntoa() and
    update to newer validity check macros.
  (opserv_user_cleanup): Use irc_ntop() instead of inet_ntoa().
  (cmd_addtrust): Update to irc_in_addr_t and its functions.
  (foreach_matching_user): Use irc_pton() instead of the mess that
    existed before.
  (opserv_discrim_create): Use irc_pton() instead of parse_ipmask().
  (discrim_match): Use irc_check_mask() instead of MATCH_IPMASK(), and
    remove ip_mask_str check.
  (opserv_discrim_search): Decide whether an IP match is fully
    qualified based on ip_mask_bits instead of ip_mask_str.
  (trace_domains_func): Add IPv6 support.
  (opserv_staff_alert): Update to new IP validity check macro.

src/proto.h (struct uplinkNode): Fix type of bind_addr field.

src/proto-bahamut.c (AddUser): Use irc_in_addr_t.
  (AddService): Default to an all-zero IP instead of loopback.
  (AddClone): Likewise.
  (irc_user): Use new layout for IPv4 in irc_in_addr_t.
  (cmd_nick): Likewise.

src/proto-common.c (create_socket_client): Remove unnecessary
    typecast.
  (generate_hostmask): Update to use irc_in_addr_t and support
    functions instead of IPv4-specific things.

src/proto-p10.c (irc_p10_pton): New function.
  (irc_p10_ntop): New function.
  (irc_user): Use irc_p10_ntop().
  (AddClone): Use irc_p10_pton().

src/tools.c (ctype): New array holding values of characters as hex.
  (irc_ntop): New function.
  (irc_ntop_mask): New function.
  (irc_pton_ip4): New helper function.
  (irc_pton): New function.
  (irc_ntoa): New function.
  (irc_check_mask): New function.
  (user_matches_glob): Use irc_ntoa() instead of inet_ntoa().
  (parse_ipmask): Delete this function.
git-archimport-id: srvx@srvx.net--2005-srvx/srvx--devo--1.3--patch-28

18 years agoFix compiler warnings on AMD64 Linux.
Michael Poole [Fri, 7 Oct 2005 02:51:12 +0000 (02:51 +0000)]
Fix compiler warnings on AMD64 Linux.

src/gline.c (gline_alternate_target): Typecast format field precision
    argument.

src/helpfile.c (helpfile_eval_identifier): Likewise.
  (helpfile_eval_atomicexpr): Likewise.
  (helpfile_eval_expr): Likewise.
  (helpfile_eval_condition): Likewise.

src/log.c (log_audit): Change typecast used to make types compatible.

src/main.c (set_item_rlimit): Use long instead of int as contained value.

src/sendmail.c (send_flowed_text): Typecast format field precision
    argument.
git-archimport-id: srvx@srvx.net--2005-srvx/srvx--devo--1.3--patch-27

18 years agoImprove channel merging and restrict channel age display.
Michael Poole [Sun, 14 Aug 2005 01:34:04 +0000 (01:34 +0000)]
Improve channel merging and restrict channel age display.

src/chanserv.c (merge_data): Merge registered and owner-transfer
    timestamps, may_opchan flag, and max visitor count.
  (cmd_info): Only show channel age if the user is privileged.
git-archimport-id: srvx@srvx.net--2005-srvx/srvx--devo--1.3--patch-26

18 years agoProperly check alerts based on numchannels criteria
Michael Poole [Tue, 19 Jul 2005 18:31:26 +0000 (18:31 +0000)]
Properly check alerts based on numchannels criteria

src/opserv.c (opserv_add_user_alert): Channel alerts also include ones
  with non-zero min_channels.  Allow an alert to be both channel-based
  and nick-based.
git-archimport-id: srvx@srvx.net--2005-srvx/srvx--devo--1.3--patch-25

18 years agoFix gcc-4.0 compile warnings and errors.
Michael Poole [Tue, 19 Jul 2005 18:18:48 +0000 (18:18 +0000)]
Fix gcc-4.0 compile warnings and errors.

configure.in: Make sure socklen_t is defined.

src/chanserv.c (bad_channel_ban): Make victimCount unsigned.

src/ioset.c (ioset_run): Fifth argument to getsockopt() should be
  socklen_t.

src/ioset.h (clock_skew): Undeclare; it is defined as static.

src/nickserv.c (is_secure_password): Create appropriately typed local
  variable for third argument of dict_find().

src/opserv.c (opserv_bad_channel): Likewise.

src/proto-p10.c (call_oper_funcs): Declare at file scope rather than
  locally to mod_usermode() function.

src/proto.h (dead_users): Undeclare; it is defined as static.

src/saxdb.c (saxdb_write_int): Fix type of string buffer.
git-archimport-id: srvx@srvx.net--2005-srvx/srvx--devo--1.3--patch-24

18 years agoFix match_ircglob() and globtest
Zoot [Mon, 4 Jul 2005 00:37:07 +0000 (00:37 +0000)]
Fix match_ircglob() and globtest

 * Fix a reversed test in match_ircglob() and make globtest compiles again.
git-archimport-id: srvx@srvx.net--2005-srvx/srvx--devo--1.3--patch-23

18 years agoIntegrate Global "from" option; reorganize code
Zoot [Wed, 1 Jun 2005 19:05:39 +0000 (19:05 +0000)]
Integrate Global "from" option; reorganize code

 * src/global.c: Integrate SF.net patch #1211520 (from bruder2k) with a small
   bug fix; this patch adds a "from" option to Global notices and messages.

 * src/global.c, src/global.h: Make struct globalMessage private; cache text
   form of message's post date/time to avoid repeated strftime() calls.
git-archimport-id: srvx@srvx.net--2005-srvx/srvx--devo--1.3--patch-22

18 years agoMake match_ircglob() work more like the ircd.
Michael Poole [Mon, 30 May 2005 15:14:56 +0000 (15:14 +0000)]
Make match_ircglob() work more like the ircd.

src/tools.c (match_ircglob): Limit glob backtracking in the same way
that ircds generally do.
git-archimport-id: srvx@srvx.net--2005-srvx/srvx--devo--1.3--patch-21

18 years agoFix en_GB language name, fix NickServ mergedb command.
Michael Poole [Sun, 1 May 2005 17:16:58 +0000 (17:16 +0000)]
Fix en_GB language name, fix NickServ mergedb command.

FAQ: Clarify FAQ #8.

src/nickserv.c: Avoid losing channel information when replacing an
account using the mergedb command.

languages/en_UK: Rename to en_GB.
git-archimport-id: srvx@srvx.net--2005-srvx/srvx--devo--1.3--patch-20

19 years agoClarify NickServ REGISTER help messages; fix ?raw and ?dump errors.
Michael Poole [Tue, 15 Mar 2005 23:12:58 +0000 (23:12 +0000)]
Clarify NickServ REGISTER help messages; fix ?raw and ?dump errors.

src/nickserv.help (REGISTER): Rephrase the message about using the
same password to hopefully make it clearer.

src/opserv.c (cmd_dump, cmd_raw): Use local buffers to hold the
original message, so that parse_line() will not unsplit the line into
the "original" buffer and strip out the sentinel :.
git-archimport-id: srvx@srvx.net--2005-srvx/srvx--devo--1.3--patch-19

19 years agoFix registered channel desync; fix HelpServ crash for old cfg files
Michael Poole [Thu, 17 Feb 2005 21:42:43 +0000 (21:42 +0000)]
Fix registered channel desync; fix HelpServ crash for old cfg files

src/hash.c (AddChannelUser): Do not give ops to the first user to join
a persistent channel.

src/helpserv.c (helpserv_conf_read): Use a default description for bots.
git-archimport-id: srvx@srvx.net--2005-srvx/srvx--devo--1.3--patch-18

19 years agoMention 'slab' in --with-malloc docs. Merge fakehosts when merging accounts.
Michael Poole [Fri, 11 Feb 2005 03:10:49 +0000 (03:10 +0000)]
Mention 'slab' in --with-malloc docs.  Merge fakehosts when merging accounts.

configure.in (--with-malloc): Mention the awesome 'slab' allocator option.

src/nickserv.c (cmd_merge): Copy fakehost to target account if appropriate.
git-archimport-id: srvx@srvx.net--2005-srvx/srvx--devo--1.3--patch-17

19 years agoFix memory corruption when removing certain bans from a channel.
Michael Poole [Tue, 8 Feb 2005 04:42:43 +0000 (04:42 +0000)]
Fix memory corruption when removing certain bans from a channel.

src/proto-common.c (mod_chanmode_apply): Make sure we get a pointer to
the ban we want to deallocate BEFORE we remove it from the banlist.
git-archimport-id: srvx@srvx.net--2005-srvx/srvx--devo--1.3--patch-16

19 years agoRearrange slab allocation header; minor slab fixes.
Michael Poole [Sat, 5 Feb 2005 13:03:21 +0000 (13:03 +0000)]
Rearrange slab allocation header; minor slab fixes.

src/alloc-slab.c (ALLOC_MAGIC, FREE_MAGIC): Replace with single-byte values.
(struct alloc_header): Move file_id and line into second 32-bit word
of header.
(slab_alloc): Remove commented-out debug statements.
(slab_unalloc): Remove memset() of freed block and commented-out debug
statements.
(slab_free): memset() freed blocks here instead.  Try to fix
*_alloc_size counting errors (use the originally requested length
rather than rounded-up length)
git-archimport-id: srvx@srvx.net--2005-srvx/srvx--devo--1.3--patch-15

19 years agoEven more slab allocator updates.
Michael Poole [Sat, 5 Feb 2005 03:52:51 +0000 (03:52 +0000)]
Even more slab allocator updates.

src/slab-alloc.c (SLAB_DEBUG): Default to on.
(SMALL_CUTOFF): Fix default value (must be a multiple of 4).
(slab_unalloc): Fix slab counting.  When SLAB_RESERVE, allocate the
set of pages in a burst, rather than supplementing them as we unmap.
(slab_realloc): Fix a rather embarassing (and LARGE) memory leak.
git-archimport-id: srvx@srvx.net--2005-srvx/srvx--devo--1.3--patch-14

19 years agomore debugging updates
Michael Poole [Fri, 4 Feb 2005 16:36:40 +0000 (16:36 +0000)]
more debugging updates

src/alloc-slab.c: Switch free slab list from a stack to queue, and
make sure there are SLAB_RESERVE in the queue before an old slab is
dereferenced.  This causes a fault when dereferencing stale pointers
to the last SLAB_RESERVE full slabs.

src/log.c: Make struct logEntry *last static, to make sure gcc does
not optimize it away.
git-archimport-id: srvx@srvx.net--2005-srvx/srvx--devo--1.3--patch-13

19 years agoMore slab allocator updates.
Michael Poole [Mon, 31 Jan 2005 22:28:59 +0000 (22:28 +0000)]
More slab allocator updates.

src/alloc-slab.c: Disable extra debugging by default.  Add more
statistics counters.  Change element type of little_slabs[].  Keep a
global list of unused (full) slab pages, rather than per-slab.
Various other cleanups and fixes.

src/chanserv.h: Can only be off-channel with off_channel > 1.

src/main.c: Update years in copyright notice.

src/opserv.c: Remove OSMSG_STATS_MEMORY.  Make cmd_stats_memory()
allocator-specific.
git-archimport-id: srvx@srvx.net--2005-srvx/srvx--devo--1.3--patch-12

19 years agoAdd "?stats memory" and optional alloc_header to slab.
Michael Poole [Mon, 31 Jan 2005 11:08:15 +0000 (11:08 +0000)]
Add "?stats memory" and optional alloc_header to slab.

src/alloc-slab.c: Add alloc_header (but no redzone) debug support,
enabled by default.  Update alloc_count and alloc_size.

src/opserv.c: Provide "stats memory" command for slab allocator.
git-archimport-id: srvx@srvx.net--2005-srvx/srvx--devo--1.3--patch-11

19 years agoAdd slab allocator; reduce delta with srvx-gs.
Michael Poole [Mon, 31 Jan 2005 05:14:52 +0000 (05:14 +0000)]
Add slab allocator; reduce delta with srvx-gs.

configure.in: Check for getpagesize().  Support --with-malloc=slab.

src/Makefile.am: Add alloc-slab.c as an extra source file.

src/alloc-srvx.c: Clean up srvx_free() slightly.  Check for previously
allocated blocks.

srvx.conf.example, src/chanserv.c, src/main.c, src/modcmd.c,
src/proto-p10.c: Apply patches to bring closer to srvx-gs branch.

src/log.c: Assert and _exit() on fatal log messages.

src/opserv.c: Clarify logic for modes to set on join floods.

src/proto-common.c: Accept off-channel commands in registered channels.
git-archimport-id: srvx@srvx.net--2005-srvx/srvx--devo--1.3--patch-10

19 years agooffchannel fixes; more memory verification
Michael Poole [Wed, 26 Jan 2005 21:16:54 +0000 (21:16 +0000)]
offchannel fixes; more memory verification

src/chanserv.c (cmd_register): Do not join channels if the default
options include being offchannel.

src/common.h: Verify list allocations when appending or removing.

src/hash.c (GetUserMode): Verify channel and user list allocations.

src/log.c (log_entry_search): Keep pointer to last visited log entry.

src/proto-p10.c (mod_chanmode_parse): Fail if trying to change +z when
passed MCP_REGISTERED.
git-archimport-id: srvx@srvx.net--2005-srvx/srvx--devo--1.3--patch-9

19 years agotypo fix in alloc-srvx.c; avoid dereferencing free()'d bans
Michael Poole [Mon, 24 Jan 2005 17:12:38 +0000 (17:12 +0000)]
typo fix in alloc-srvx.c; avoid dereferencing free()'d bans

src/alloc-srvx.c (srvx_realloc): Fix argument list to srvx_free().

src/chanserv.c (find_matching_bans): Make temporary copies of bans to
be removed.  Double-check remove count at end of loop.
(unban_user, cmd_open): Free the string copies.
(cmd_unbanall): Make temporary copies of removed bans and free them.
(handle_mode): Likewise.

src/opserv.c (cmd_clearbans): Likewise.
git-archimport-id: srvx@srvx.net--2005-srvx/srvx--devo--1.3--patch-8

19 years agoMore allocation debugging support.
Michael Poole [Mon, 24 Jan 2005 16:45:44 +0000 (16:45 +0000)]
More allocation debugging support.

src/alloc-srvx.c (srvx_realloc): Reorganize.
(verify): New function.

src/common.h (verify): Define and/or declare suitably.

src/dict-splay.c (dict_splay): Verify node at each iteration.
(dict_insert, dict_remove2, dict_find, dict_delete,
dict_sanity_check): Verify entire dict.
(dict_sanity_check_node): Verify node as valid allocation.

src/hash.c (DelChannel): Verify channel before deletion.
(GetUserMode): Verify channel, user, and each modeNode.

src/mod-sockcheck.c (sockcheck_free_client): Verify client.
(sockcheck_timeout_client, sockcheck_advance, sockcheck_readable,
sockcheck_connected, sockcheck_begin_test): Likewise.
(sockcheck_queue_address): Verify cached sockcheck entries.

src/proto-p10.c (DelUser): Verify user before deletion.
git-archimport-id: srvx@srvx.net--2005-srvx/srvx--devo--1.3--patch-7

19 years agoMore debug allocator fixes and enhancements
Michael Poole [Fri, 21 Jan 2005 15:10:49 +0000 (15:10 +0000)]
More debug allocator fixes and enhancements

src/alloc-srvx.c (*_MAGIC): ASk recognized the CCSDS ASM sequence.
(srvx_free): Overwrite with 0xDE bytes to distinguish from
uninitialized values.  As SailorFrag suggested, only overwrite the
user region.

src/dict-splay.c (dict_insert): Check whether free functions need to
be worked around here as well.
git-archimport-id: srvx@srvx.net--2005-srvx/srvx--devo--1.3--patch-6

19 years agoAdd redzone and statistics reporting to debug allocator.
Michael Poole [Fri, 21 Jan 2005 00:48:35 +0000 (00:48 +0000)]
Add redzone and statistics reporting to debug allocator.

src/alloc-srvx.c (redzone): New variable to detect buffer overwrites.
(alloc_count, alloc_size): New variables to track allocation stats.
(srvx_malloc, srvx_realloc, srvx_free): Use the above.

src/opserv.c (OSMSG_STATS_MEMORY): New translation string.
(cmd_stats_memory): New (conditional) command function.
(init_opserv): Conditionally provide cmd_stats_memory.
git-archimport-id: srvx@srvx.net--2005-srvx/srvx--devo--1.3--patch-5

19 years agoAdd built-in debug malloc wrapper.
Michael Poole [Thu, 20 Jan 2005 23:41:17 +0000 (23:41 +0000)]
Add built-in debug malloc wrapper.

TODO: Remove the completed TODO item.

configure.in: Add --with-malloc=srvx support.

src/Makefile.am: Add alloc-srvx.c to extra sources.

src/common.h: Reindent debug malloc directives; add directives for
WITH_MALLOC_SRVX.

src/dict-splay.c: Kludge around free() as macro vs function.
git-archimport-id: srvx@srvx.net--2005-srvx/srvx--devo--1.3--patch-4

19 years agovarious bugfixes and IPv6 preparation work
Michael Poole [Thu, 20 Jan 2005 22:51:54 +0000 (22:51 +0000)]
various bugfixes and IPv6 preparation work

src/modcmd.c (modcmd_privmsg): Fix CTCP PING response type.

src/opserv.help: Add column headers for command lists.

src/tools.c (is_gline, split_ircmask): Accept colons in hostnames.
git-archimport-id: srvx@srvx.net--2005-srvx/srvx--devo--1.3--patch-3

19 years agoAdd MODE_REGISTERED as +z for P10.
Michael Poole [Wed, 5 Jan 2005 01:03:05 +0000 (01:03 +0000)]
Add MODE_REGISTERED as +z for P10.

Add MODE_REGISTERED as +z for P10.
git-archimport-id: srvx@srvx.net--2005-srvx/srvx--devo--1.3--patch-2

19 years agoRotate ChangeLog for new repository; clarify documentation files
Michael Poole [Tue, 4 Jan 2005 19:35:57 +0000 (19:35 +0000)]
Rotate ChangeLog for new repository; clarify documentation files

Rotate ChangeLog to show changes for srvx@srvx.net--2005-srvx repo.

Fix various file permissions to 664 instead of 620.

Update FAQ and TODO.  Add UPGRADE file to arch and to distribution.
git-archimport-id: srvx@srvx.net--2005-srvx/srvx--devo--1.3--patch-1

19 years agoFix ban reader
Zoot [Tue, 23 Nov 2004 04:09:30 +0000 (04:09 +0000)]
Fix ban reader

 * src/chanserv.c: Drop invalid bans with no reason during database reads
   and require bans to have a reason set in add_channel_ban().
git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-84

19 years agoFix nick length check in is_valid_nick().
Michael Poole [Wed, 10 Nov 2004 01:25:53 +0000 (01:25 +0000)]
Fix nick length check in is_valid_nick().

The for() loop in is_valid_nick() leaves 'nick' as an empty string,
which is obviosly shorter than the nick length limit.  Fix that.
git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-83

19 years agoFix glob matching against IPs
Michael Poole [Sat, 16 Oct 2004 21:14:11 +0000 (21:14 +0000)]
Fix glob matching against IPs

Do not require the first character in an IP glob to be a digit.  If an
IP-looking glob does not match, fall through to the other host matching
rules, in case the IP-looking glob really matches their hostname.
git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-82

19 years agoConsolidate use_registered_mode into off_channel and expand overall functionality
adam [Wed, 15 Sep 2004 04:14:14 +0000 (04:14 +0000)]
Consolidate use_registered_mode into off_channel and expand overall functionality

* srvx.conf's off_channel setting now allows us to turn on all of the features of out-of-channel services without activating the
channel setting to have chanserv part

git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-81

19 years agoChanServ bugfixes for +z and addbans in suspended channels
Michael Poole [Mon, 13 Sep 2004 13:11:38 +0000 (13:11 +0000)]
ChanServ bugfixes for +z and addbans in suspended channels

If ChanServ should use MODE_REGISTERED, update that when moving channels.

Do not check for bans against an auth'ing user in suspended channels.

Change the example entries for off_channel and use_registered_mode to
make the enabled/on values more obvious.
git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-80

19 years agoImplement item #1011114, #997053
Michael Poole [Wed, 8 Sep 2004 23:36:51 +0000 (23:36 +0000)]
Implement item #1011114, #997053

* Adjust the default max_greetlen to 200 (since greetings are now
  unconditionally capped at one line of output).

* Allow DNRs to be shown for accounts that currently do not exist.
git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-79

19 years agoFix bugs; better handle oplevels from ircu2.10.12
Michael Poole [Mon, 6 Sep 2004 13:35:59 +0000 (13:35 +0000)]
Fix bugs; better handle oplevels from ircu2.10.12

* Fix order of port and IP in sample socks4 proxy test.

* Fix a bug in dict_remove2() that corrupted the tree order if a
cleanup function tried to delete another node.

* Fix a buffer overflow in cmd_joiner.

* Get rid of free_nick_info() since it is really just free().

* If our P10 uplink sends an oplevel in a burst, treat it as a chanop.
git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-78

19 years agoMore title host checking
Zoot [Thu, 12 Aug 2004 16:06:55 +0000 (16:06 +0000)]
More title host checking

 * src/nickserv.c: Make oset title verify that the final combined fakehost
   will not be truncated before storing the title. Also, supply a missing
   format string argument.
git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-77

19 years agoFix format string bug
Zoot [Sun, 8 Aug 2004 17:42:01 +0000 (17:42 +0000)]
Fix format string bug

 * src/chanserv.c: Fix a format string bug in the myaccess command.
git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-76

19 years agoAssorted bug fixes
Michael Poole [Mon, 2 Aug 2004 12:54:13 +0000 (12:54 +0000)]
Assorted bug fixes

* Add missing semicolon in German translation of CSMSG_TRANSFER_WAIT.

* Fix pointer used in !trim max_access calculation.

* Default to maximum line length for all "single-line" messages.

* Return success from NickServ ounregister so it is logged properly.
git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-75

19 years agoChannel suspension, transfer and line wrap changes
Michael Poole [Thu, 22 Jul 2004 04:03:22 +0000 (04:03 +0000)]
Channel suspension, transfer and line wrap changes

* Treat half-unsuspended channels as unsuspended, to avoid crashes
caused by sysadmins editing chanserv.db in screwy ways.

* Add a srvx.conf option to limit how often channel owners can give
away channel ownership.

* Limit most output line expansions to just one line.

* Remove unnecessary assert(hs_user) checks from mod-helpserv.c.

* Don't run_empty_interval() in HelpServ when the user's server is
still bursting.
git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-74

19 years agoBugfixes for !trim users, !unsuspend and /clearmodes
Michael Poole [Mon, 19 Jul 2004 03:38:09 +0000 (03:38 +0000)]
Bugfixes for !trim users, !unsuspend and /clearmodes

* Show actual upper bound used to trim users.

* Update whether an user being unsuspended is in the channel.

* Add a missing "break;" so that /clearmodes c doesn't clear NOCTCPS too.
git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-73

19 years agoadd FAQ to distribition; make compatible with gcc-2.95
Michael Poole [Mon, 12 Jul 2004 19:06:38 +0000 (19:06 +0000)]
add FAQ to distribition; make compatible with gcc-2.95

* Add FAQ to EXTRA_DIST in root.

* Name the anonymous union inside struct mod_chanmode.

* Typecast printf() field width arguments to int.
git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-72

19 years agoFix OperServ inviteme crash
Zoot [Sat, 10 Jul 2004 04:42:12 +0000 (04:42 +0000)]
Fix OperServ inviteme crash

* src/opserv.c: Fix a NULL pointer dereference in inviteme that caused crashes
  for some users.
git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-71

19 years agomiscellaneous bugfixes and indentation fixes
Michael Poole [Thu, 1 Jul 2004 02:23:21 +0000 (02:23 +0000)]
miscellaneous bugfixes and indentation fixes

* srvx.conf.example: Clarify comment about "default_hostmask" setting.

* patches/sethost13.diff: Forward port of sethost patch, from Reed Loden.

* src/opserv.c (cmd_kickbanall): Free mod_chanmode_change after use.

* src/proto-p10.c (cmd_whois): Fix indentation and show real server to opers.

* src/tools.c (string_buffer_append_vprintf): Avoid a possible buffer overrun.
git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-70

19 years agoadded modes parameter to srvx.conf to control user modes
adam [Wed, 16 Jun 2004 12:23:32 +0000 (12:23 +0000)]
added modes parameter to srvx.conf to control user modes

* each service now has a 'modes' parameter in srvx.conf to specify their individual modes.. if left blank, will default to whatever 'services' modes work for your ircd.

git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-69

19 years agofixed MODE_REGISTERED bug; introduced MCP_REGISTERED
adam [Tue, 8 Jun 2004 09:24:49 +0000 (09:24 +0000)]
fixed MODE_REGISTERED bug; introduced MCP_REGISTERED

* fixed MODE_REGISTERED bug: srvx was sending a blank mode change on channel unregistrations; we now have a srvx.conf setting that dictates whether or not to use MODE_REGISTERED (which has no corresponding letter on P10 networks!) - also, we now set MODE_REGISTERED in newly registered channels (which we werent before)

* introduced MCP_REGISTERED: we now don't let channels that are registered play with the registered mode (usually +r on bahamut networks) via chanserv user-level commands (ie: !mode -r)

git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-68

19 years agoAdd fake host support (assuming your ircd supports it)
Michael Poole [Sat, 22 May 2004 04:24:57 +0000 (04:24 +0000)]
Add fake host support (assuming your ircd supports it)

Add definitions in various places to support assigning fake hosts to
users.  We will not give you (or make for you) patches to make your
ircd support this feature, so please do not ask.  You must set a
certain srvx.conf setting to be able to assign fakehosts; finding it
is left as an exercise to the reader.
git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-67

19 years agoRemove obsolete check for src/srvx directory
Michael Poole [Sat, 22 May 2004 03:00:05 +0000 (03:00 +0000)]
Remove obsolete check for src/srvx directory

Since srvx is in arch, and arch doesn't have CVS's eccentricities
about old directories, remove the test for src/srvx being a directory.
git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-66

19 years agoFix memory leak in ?accounts
Michael Poole [Fri, 21 May 2004 12:58:18 +0000 (12:58 +0000)]
Fix memory leak in ?accounts

Fix a memory leak in ?accounts.
git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-65

19 years agoFix helpserv whine when helpers leave the channel; fix ?devoiceall
Michael Poole [Fri, 21 May 2004 12:38:39 +0000 (12:38 +0000)]
Fix helpserv whine when helpers leave the channel; fix ?devoiceall

Remove the parting modeNode before making callbacks, so callbacks
don't get confused and think the user is still in the channel.

In ?devoiceall, OpServ should only remove voice from users who have it.
git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-64

19 years agofix minor EnfModes bug in chanserv.c
adam [Mon, 17 May 2004 09:44:35 +0000 (09:44 +0000)]
fix minor EnfModes bug in chanserv.c

* address bug id #955105; minor EnfModes issue

git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-63

19 years agofix stupid typo from --patch-61
adam [Fri, 14 May 2004 06:27:30 +0000 (06:27 +0000)]
fix stupid typo from --patch-61

* fix stupid typo in nickserv.c from --patch-61; sigh.

git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-62

19 years agorearrange chanserv-level ban/kick messages; change wording on authentication cookie...
adam [Fri, 14 May 2004 05:37:38 +0000 (05:37 +0000)]
rearrange chanserv-level ban/kick messages; change wording on authentication cookie email, implement old tried2reg patch

* chanserv ban/kick messages are now displayed as "(name) message" as opposed to what they were, which was "message (name)"; this was done to remove irregularity with how it was in some parts of the code.

* at semi-popular request, wording in initial registration emails has been changed to explain that COOKIE should not be used more than once

* implemented old 'tried2reg' patch - you may only use /msg authserv register once per session (this was not the case before, which was apparent with email registrations)

git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-61

19 years agoFix several bugs; make off-channel a per-channel option
Michael Poole [Sun, 9 May 2004 03:05:48 +0000 (03:05 +0000)]
Fix several bugs; make off-channel a per-channel option

* Add per-channel option (!set offchannel) for off-channel services
support.

* Rename REGISTERED_MODE to MODE_REGISTERED and always use it.

* Delete remaining (registered) channels on exit.

* Fix tests in proto-p10.c for chanop-ness when using off-channel
services support.
git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-60

19 years agoallow daemon mode under cygwin
Michael Poole [Fri, 7 May 2004 14:32:06 +0000 (14:32 +0000)]
allow daemon mode under cygwin

* Remove code to disable daemon mode in Cygwin, since Cygwin now
properly implements fork() etc.
git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-59

19 years agobasic off-channel support; restructuring how part functions are handled
adam [Thu, 6 May 2004 09:46:38 +0000 (09:46 +0000)]
basic off-channel support; restructuring how part functions are handled

* added srvx.conf setting to allow chanserv to work being outside of a channel; if you'd like to have srvx set a mode as it joins, edit REGISTERED_MODE in hash.h. this will not work properly on P10 networks - though it may be nice for bahamut-based networks. either way, please do not ask us for assistance.

* changed the way part functions are called - a modeNode is now passed, and they are run *before* the user's membership link in that channel is nuked.

git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-58

19 years agointroduce unreg_privmsg_func, fix minor autoinvite issue, alter account-finding on...
adam [Sat, 1 May 2004 11:17:11 +0000 (11:17 +0000)]
introduce unreg_privmsg_func, fix minor autoinvite issue, alter account-finding on local services clients

* introduce unreg_privmsg_func: unreg_privmsg_func()/unreg_notice_func() - both of which reverse the effect of reg_privmsg_func()/reg_notice_func()

* fix minor autoinvite issue: UserAutoInvite (aka: '!uset autoinvite ..') no longer invites you to channels you weren't in if the server you are on just reconnected to the network

* alter account-finding on local services clients: non +k users on the local services server are now no longer referred to as services (at least not in regard to accounts..)

git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-57

19 years agoRemove debug messages from account MERGE command; translate RECLAIM kill message
Michael Poole [Thu, 29 Apr 2004 01:57:00 +0000 (01:57 +0000)]
Remove debug messages from account MERGE command; translate RECLAIM kill message

* Change the debug messages in NickServ MERGE to be more succinct and
useful for accounting/undos.

* Translate the kill message sent when reclaiming an owned nickname.
git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-56

19 years agoFix Bahamut assertion failure; move BURST to more "natural" place
Michael Poole [Thu, 29 Apr 2004 01:51:19 +0000 (01:51 +0000)]
Fix Bahamut assertion failure; move BURST to more "natural" place

* Fix a mod_chanmode assertion failure when using proto-bahamut.c with
debugging enabled.

* Send BURST in response to SVINFO, not SERVER, so that eventual
timestamp adjustment is more accurate.
git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-55

19 years agoFix !up for users below GiveVoice level; implement RFE#933634
Michael Poole [Thu, 29 Apr 2004 01:41:37 +0000 (01:41 +0000)]
Fix !up for users below GiveVoice level; implement RFE#933634

* If users have access belowGiveVoice, do not let them use UP.

* Show channel flags (suspended, autoop, etc) in MYACCESS.
git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-54

19 years agoREALLY remove duplicate line in languages/en_UK/chanserv.help.
Michael Poole [Thu, 29 Apr 2004 00:31:22 +0000 (00:31 +0000)]
REALLY remove duplicate line in languages/en_UK/chanserv.help.

REALLY remove duplicate line in languages/en_UK/chanserv.help.
git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-53

19 years agoRemove duplicate line in en_UK chanserv.help file
Michael Poole [Wed, 28 Apr 2004 19:55:22 +0000 (19:55 +0000)]
Remove duplicate line in en_UK chanserv.help file

Remove a duplicate line in languages/en_UK/chanserv.help.
git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-52

19 years agoSanity check user infolines
Michael Poole [Wed, 28 Apr 2004 19:53:40 +0000 (19:53 +0000)]
Sanity check user infolines

* Disallow infolines longer than a configured maximum length (by
default, 400 characters).

* Disallow infolines that contain certain characters (currently
just ^A).
git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-51

20 years agofix compile errors on readdir()-deficient platforms
Michael Poole [Mon, 12 Apr 2004 03:25:03 +0000 (03:25 +0000)]
fix compile errors on readdir()-deficient platforms

* Cygwin does not have "struct dirent.d_type".  Check for that in the
configure script and use stat() to test for directory-ness instead.
git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-50

20 years agoadd en_UK translation by Byte
Michael Poole [Sat, 10 Apr 2004 23:04:21 +0000 (23:04 +0000)]
add en_UK translation by Byte

Add en_UK translation by byte.
git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-49

20 years agoFix service persistence bug in patch-47
Michael Poole [Fri, 9 Apr 2004 22:18:21 +0000 (22:18 +0000)]
Fix service persistence bug in patch-47

patch-47 attempted to fix a previously reported error where srvx would
create NickServ, ChanServ, OpServ and Global even if the "nick" entry
was omitted from srvx.conf.  This broke persistence of all service
bots added by the modcmd.service\ add comand.  (Closes: #932566)
git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-48

20 years agoFix service triggers; allow service hostname configuration; fix glitches
Michael Poole [Fri, 9 Apr 2004 20:08:58 +0000 (20:08 +0000)]
Fix service triggers; allow service hostname configuration; fix glitches

* Improve length checking logic in ChanServ.names command.

* Fix service trigger registration so that database is used in
preference to srvx.conf and compiled-in defaults.

* Allow service hostnames to be configured in srvx.conf and through
"service add"; document this and show an example of setting the
service description.

* Fix an uninitialized value bug in OpServ.join.

* Make OpServ.addtrust accept a count of 0.

* Remove untranslated messages from languages/de/modcmd.help (so that
new "service add" help is inherited).
git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-47

20 years agochanges to !uset autoinvite behavior, introduction of allchanmsg_func hooks
adam [Fri, 9 Apr 2004 01:57:12 +0000 (01:57 +0000)]
changes to !uset autoinvite behavior, introduction of allchanmsg_func hooks

* changes to !uset autoinvite behavior: the autoinvite flag now works whether or not the channel it is set in is +i/+k.

* introduction of allchanmsg_func hooks: there is now a set of hooks (available via reg_allchanmsg_func()) in place to catch all public channel messages the services server sees.

git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-46

20 years agoFix automatic ChangeLog tag (I hope)
Michael Poole [Thu, 8 Apr 2004 03:42:49 +0000 (03:42 +0000)]
Fix automatic ChangeLog tag (I hope)

* Try to set the ChangeLog file tag correctly for it to be updated on
commit.
git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-45

20 years agoFix some signed/unsigned misbehaviors; add FAQ
Michael Poole [Thu, 8 Apr 2004 03:18:41 +0000 (03:18 +0000)]
Fix some signed/unsigned misbehaviors; add FAQ

* Change format and variable types to unsigned so as to avoid
confusing negative numbers with very large positive numbers.

* Create a FAQ file
git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-44

20 years agoFix spurious user protection notices
Zoot [Sun, 4 Apr 2004 21:37:36 +0000 (21:37 +0000)]
Fix spurious user protection notices

* Fix ChanServ warning users when they remove a ban set on a protected
  user's hostmask.
git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-43

20 years agoI18N fixes and (hopefully) protocol fixes
Michael Poole [Sat, 3 Apr 2004 03:26:43 +0000 (03:26 +0000)]
I18N fixes and (hopefully) protocol fixes

* Correct some grammar in German translation (extraneous "vor").

* Try to fix desyncs when an older channel bursts in after initial join.

* Languages must be subdirectories that do not start with '.', so
  check that before applying them as a language.  Since we already
  have the language list at helpfile_finalize() time, use it instead
  of walking the "languages" directory again.

* Ignore 467 response from uplink.
git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-42

20 years agoFix mistakes in backport of German translation
Michael Poole [Fri, 2 Apr 2004 18:38:19 +0000 (18:38 +0000)]
Fix mistakes in backport of German translation

* Delete mod-serverspy.help since it is not part of this code base.

* Replace /AUTHSERV with /msg $N@$s.
git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-41

20 years agoAdd German translation
Michael Poole [Fri, 2 Apr 2004 18:34:40 +0000 (18:34 +0000)]
Add German translation

* Fix a format string bug in nickserv.c:NSEMAIL_ALLOWAUTH_BODY.

* Use a separate key name for !netinfo's "Total User Count" so
  other languages can get proper alignment for both that and
  !info #channel.

* Add German language translation by Marc 'feigling' Kührer.
git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-40

20 years agotranslate interval strings; translate more NickServ messages
Michael Poole [Tue, 30 Mar 2004 04:40:38 +0000 (04:40 +0000)]
translate interval strings; translate more NickServ messages

* Translate interval strings to the user's language.

* Translate cookie emails and auth failure messages based on the
account's preferred language, rather than the user's preferred
language (they will not be authed, so they would get lang_C).
git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-39

20 years agoFix uninitialized mod_chanmode element in debug build
Michael Poole [Tue, 30 Mar 2004 04:25:14 +0000 (04:25 +0000)]
Fix uninitialized mod_chanmode element in debug build

* Convert an old-style auto-variable mod_chanmode to use
mod_chanmode_init() so that all fields are initialized.
git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-38

20 years agoMulti-language support fixes
Michael Poole [Tue, 30 Mar 2004 04:11:03 +0000 (04:11 +0000)]
Multi-language support fixes

* Copy keys in per-language message tables so that they don't point to
free()d memory.

* Only warn about missing/extra messages if there are any.

* In language_read_list(), do not allocate languages "." or "..".
git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-37

20 years agoautomatic arch-version.h update; CTCP support; helpfile fixes; disk-out-of-space...
Michael Poole [Mon, 29 Mar 2004 21:10:10 +0000 (21:10 +0000)]
automatic arch-version.h update; CTCP support; helpfile fixes; disk-out-of-space error detection and handling

* Add a rule to automatically check arch version and update
arch-version.h when needed

* Implement CTCP response handling messages direct to services.

* Fix grammar error in GIVEOWNERSHIP help entry, fix cross-reference
markup in several ChanServ commands (should underline, not bold, the
"See Also:" link), remove VERSION help entries from modules that no
longer implement that command.

* Check for errors (using setjmp/longjmp) when writing to a saxdb
file, and log the failures.
git-archimport-id: srvx@srvx.net--2004-srvx/srvx--devo--1.3--patch-36