[srvx-commits] srvx branch, master, updated. v1.4.0-rc3-69-gde337e9
Brought to you by:
entrope
From: Entrope <en...@us...> - 2010-03-18 03:05:38
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "srvx". The branch, master has been updated via de337e945ddd760fd1e823cf4822f32e692ac433 (commit) via 2e67ca10af3665e1027a236fd0f7055a1b63c5ff (commit) via c6fa4522fbe70e132366f56365e88779003a14b2 (commit) via 9904260b83596e5e9a8a15eeaa31a0c9007625f9 (commit) from db23d3d138fdf2eca1c78028767715fc9068b02b (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit de337e945ddd760fd1e823cf4822f32e692ac433 Author: Michael Poole <md...@tr...> Date: Wed Mar 17 23:00:32 2010 -0400 Silently ignore +z when users use it from ChanServ. Fixes SF#2970686. src/proto-p10.c (mod_chanmode_parse): Just ignore +z when MCP_REGISTERED is set (which only happens from ChanServ). src/opserv.c (cmd_clearmodes): Do not automatically clear +z. commit 2e67ca10af3665e1027a236fd0f7055a1b63c5ff Author: Michael Poole <md...@tr...> Date: Wed Mar 17 22:53:30 2010 -0400 Simplify G-line code somewhat. Generate better output for ?gtrace print. A hub with a negative clock skew will cause adverse results (like the issued or lastmod times being in the network's future). That will be fixed in ircu. src/gline.c (gline_for_p): Rewrite to just compare the G-line pointer. (gline_add): Use that instead. Move "issued" back in time if the lastmod time is earlier than we know the G-line was issued. src/opserv.c (OSMSG_GTRACE_FOREVER): New format string. (OSMSG_GTRACE_EXPIRED): Likewise. (gtrace_print_func): Use the appropriate OSMSG_GTRACE_* string. commit c6fa4522fbe70e132366f56365e88779003a14b2 Author: Michael Poole <md...@tr...> Date: Wed Mar 17 22:11:27 2010 -0400 Implement remote /time query functionality. src/proto-p10.c (cmd_time): New function. (init_parse): Register it. commit 9904260b83596e5e9a8a15eeaa31a0c9007625f9 Author: Michael Poole <md...@tr...> Date: Wed Mar 17 22:11:00 2010 -0400 Support G-line lifetimes. This involves using the old "expiration" as when the G-line becomes inactive, and adding a new "lifetime" that is the latest of all the expiration times that the G-line has ever had. For convenience, gline_add() will compare its new "lifetime" argument with its calculated expiration time -- so callers can safely pass 0 as the lifetime. src/gline.h (struct gline): Add the lifetime field. Add Doxygen comments for future reference. (struct gline_discrim): Add bounds for the lifetime field. (gline_add): Add lifetime argument. src/gline.c (KEY_LIFETIME): New database key. (delete_gline_for_p): Delete. (gline_expire): Use lifetime to determine whether a G-line expired. (gline_remove): Simplify greatly, because we don't actually remove G-lines any more (we just mark them immediately expired). (gline_add): Add parameter for lifetime, and use it. (gline_add_record): Parse lifetime field if it is present. Simplify the parsing of the issued field. (gline_write_entry): Write the lifetime. (gline_discrim_create): Use ULONG_MAX rather than INT_MAX for maximum timestamps. Parse "lifetime" arguments. (gline_discrim_match): Check the lifetime bounds. src/mod-blacklist.c (dnsbl_hit): Pass 0 lifetime for gline_add(). (blacklist_check_user): Likewise. src/mod-sockcheck.c (sockcheck_issue_gline): Likewise. src/opserv.c (OSMSG_GTRACE_FORMAT): Add lifetime field. (opserv_block): Pass 0 lifetime for gline_add(). (cmd_gline): Likewise. (opserv_new_user_check): Likewise. (gtrace_print_func): Format the lifetime. src/proto-p10.c (irc_gline): Include the lifetime in the correct place. (irc_ungline): Include the current timestamp (last modified time). (cmd_num_gline): When the lifetime argument is given, parse it. (cmd_gline): Likewise. Also implement the normal ircu check for expiration as an absolute versus relative time. ----------------------------------------------------------------------- Summary of changes: src/gline.c | 121 ++++++++++++++++++++++++++++----------------------- src/gline.h | 14 ++++++- src/mod-blacklist.c | 4 +- src/mod-sockcheck.c | 2 +- src/opserv.c | 27 ++++++++---- src/proto-p10.c | 49 ++++++++++++++++----- 6 files changed, 137 insertions(+), 80 deletions(-) hooks/post-receive -- srvx |