From 425f96f6143bc79f8da6f1e023926e9c3cfad5fd Mon Sep 17 00:00:00 2001 From: Michael Poole Date: Mon, 15 Aug 2005 23:22:50 +0000 Subject: [PATCH] Minor code and output cleanups for the week of 2005-08-15. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1456 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ChangeLog | 14 ++++++++++++++ include/supported.h | 2 +- ircd/IPcheck.c | 2 +- ircd/channel.c | 2 +- ircd/convert-conf.c | 2 +- ircd/listener.c | 2 +- 6 files changed, 19 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index c14fa4d..7e07712 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,17 @@ +2005-08-15 Michael Poole + + * include/supported.h (FEATURESVALUES2): Add +d channel mode. + + * ircd/IPcheck.c (ip_registry_new_entry): Clarify that this is not + a varadic function. (Suggested by Ian Kumlien.) + + * ircd/convert-conf.c (finish_operators): Likewise. + + * ircd/listener.c (close_listeners): Likewise. + + * ircd/channel.c (CheckDelayedJoins): Use HIS server name to + remove channel mode +d. + 2005-08-12 Michael Poole * ircd/channel.c (pretty_mask): Recognize ':' as unique to the diff --git a/include/supported.h b/include/supported.h index 09a581c..bebbc94 100644 --- a/include/supported.h +++ b/include/supported.h @@ -64,7 +64,7 @@ feature_int(FEAT_CHANNELLEN), CHANNELLEN #define FEATURESVALUES2 (feature_bool(FEAT_LOCAL_CHANNELS) ? "#&" : "#"), "(ov)@+", "@+", \ - (feature_bool(FEAT_OPLEVELS) ? "b,AkU,l,imnpstrD" : "b,k,l,imnpstrD"), \ + (feature_bool(FEAT_OPLEVELS) ? "b,AkU,l,imnpstrDd" : "b,k,l,imnpstrDd"), \ "rfc1459", feature_str(FEAT_NETWORK) #endif /* INCLUDED_supported_h */ diff --git a/ircd/IPcheck.c b/ircd/IPcheck.c index 0887fe2..373958e 100644 --- a/ircd/IPcheck.c +++ b/ircd/IPcheck.c @@ -160,7 +160,7 @@ static void ip_registry_remove(struct IPRegistryEntry* entry) * For members that have a sensible default value, that is used. * @return Newly allocated registry entry. */ -static struct IPRegistryEntry* ip_registry_new_entry() +static struct IPRegistryEntry* ip_registry_new_entry(void) { struct IPRegistryEntry* entry = freeList; if (entry) diff --git a/ircd/channel.c b/ircd/channel.c index fcbf707..f29c124 100644 --- a/ircd/channel.c +++ b/ircd/channel.c @@ -3531,7 +3531,7 @@ void CheckDelayedJoins(struct Channel *chan) if (!memb2) { /* clear +d */ chan->mode.mode &= ~MODE_WASDELJOINS; - sendcmdto_channel_butserv_butone(&me, CMD_MODE, chan, NULL, 0, + sendcmdto_channel_butserv_butone(&his, CMD_MODE, chan, NULL, 0, "%H -d", chan); } } diff --git a/ircd/convert-conf.c b/ircd/convert-conf.c index 2ef2f18..f65bd7b 100644 --- a/ircd/convert-conf.c +++ b/ircd/convert-conf.c @@ -368,7 +368,7 @@ static void do_operator(int is_local) operators = oper; } -static void finish_operators() +static void finish_operators(void) { struct remapped_feature *remap; struct operator *oper; diff --git a/ircd/listener.c b/ircd/listener.c index c3f85dd..d51d319 100644 --- a/ircd/listener.c +++ b/ircd/listener.c @@ -330,7 +330,7 @@ void close_listener(struct Listener* listener) } /** Close all inactive listeners. */ -void close_listeners() +void close_listeners(void) { struct Listener* listener; struct Listener* listener_next = 0; -- 2.20.1