Minor code and output cleanups for the week of 2005-08-15.
authorMichael Poole <mdpoole@troilus.org>
Mon, 15 Aug 2005 23:22:50 +0000 (23:22 +0000)
committerMichael Poole <mdpoole@troilus.org>
Mon, 15 Aug 2005 23:22:50 +0000 (23:22 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1456 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
include/supported.h
ircd/IPcheck.c
ircd/channel.c
ircd/convert-conf.c
ircd/listener.c

index c14fa4d64bf62f1f8ab68d50653df2aea01b1594..7e07712850b707f042c49ffcc0e1eb39c484c032 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+2005-08-15  Michael Poole <mdpoole@troilus.org>
+
+       * 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 <mdpoole@troilus.org>
 
        * ircd/channel.c (pretty_mask): Recognize ':' as unique to the
index 09a581ce6fa85173ae8c1353f6d862fe335464a8..bebbc94f20db4fa213f1e99c33d7254c9a5bde3b 100644 (file)
@@ -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 */
index 0887fe2acdf52f377978d76f106dc5a1264abb7f..373958e9dc030eb7b6e0af3f9f99596c4c398ac4 100644 (file)
@@ -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)
index fcbf7070b401b9d3dc066fd1ce2a2465f1f6f684..f29c124e44167fe9707432efc711af167cb6cb23 100644 (file)
@@ -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);
     }
   }
index 2ef2f18ed2b74f94cc9600d6c7f71c3a048ed741..f65bd7b7afa4d3750b101ec39798d5bcde39b721 100644 (file)
@@ -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;
index c3f85dd698cc6f9418c430532c32a0c6664e233e..d51d319d383c7bd30c9837d81fd2379e4436e7ee 100644 (file)
@@ -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;