Fix typos in various comments.
authorMichael Poole <mdpoole@troilus.org>
Sun, 20 Mar 2005 13:45:28 +0000 (13:45 +0000)
committerMichael Poole <mdpoole@troilus.org>
Sun, 20 Mar 2005 13:45:28 +0000 (13:45 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1333 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/channel.c
ircd/m_create.c
ircd/m_list.c
ircd/m_names.c
ircd/numnicks.c
ircd/s_bsd.c

index 87de05867876cd793c923a4d0775be6e27e1f834..e75bed2de0baba29d876cfe3321ffdfbf27da6ce 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,19 @@
-2005-03-19  Michael Poole <mdpoole@troilus.org>
+2005-03-20  Michael Poole <mdpoole@troilus.org>
+       (Thanks to Reed Loden for pointing these out.)
+
+       * ircd/channel.c: Fix typos in comments.
+
+       * ircd/m_create.c: Likewise.
+
+       * ircd/m_list.c: Likewise.
+
+       * ircd/m_names.c: Likewise.
+
+       * ircd/numnicks.c: Likewise.
+
+       * ircd/s_bsd.c: Likewise.
+
+2005-03-20  Michael Poole <mdpoole@troilus.org>
        (Thanks to Reed Loden for pointing these out.)
 
        * doc/Configure.help: Remove outdated file.
index 98d8361d3908f1580df044fbb9ada09b3b8ef79a..4d8c0fce90e591faf91d7ae71f4592904ffd19fe 100644 (file)
@@ -18,7 +18,7 @@
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 /** @file
- * @brief Channel management and maintanance
+ * @brief Channel management and maintenance
  * @version $Id$
  */
 #include "config.h"
@@ -895,7 +895,7 @@ void send_channel_modes(struct Client *cptr, struct Channel *chptr)
     }
 
     /*
-     * Attach nicks, comma seperated " nick[:modes],nick[:modes],..."
+     * Attach nicks, comma separated " nick[:modes],nick[:modes],..."
      *
      * First find all opless members.
      * Run 2 times over all members, to group the members with
@@ -1015,7 +1015,7 @@ void send_channel_modes(struct Client *cptr, struct Channel *chptr)
 
     if (!full)
     {
-      /* Attach all bans, space seperated " :%ban ban ..." */
+      /* Attach all bans, space separated " :%ban ban ..." */
       for (first = 2; lp2; lp2 = lp2->next)
       {
         len = strlen(lp2->banstr);
@@ -1172,7 +1172,7 @@ static void send_ban_list(struct Client* cptr, struct Channel* chptr)
  * This version contributed by SeKs \<intru@info.polymtl.ca\>
  *
  * @param key          Key to check
- * @param keyring      Comma seperated list of keys
+ * @param keyring      Comma separated list of keys
  *
  * @returns True if the key was found and matches, false otherwise.
  */
@@ -1532,7 +1532,7 @@ int number_of_zombies(struct Channel *chptr)
  * @param strptr_i     modified offset to the position to modify
  * @param str1         The string to contatenate from.
  * @param str2         The second string to contatenate from.
- * @param c            Charactor to seperate the string from str1 and str2.
+ * @param c            Charactor to separate the string from str1 and str2.
  */
 static void
 build_string(char *strptr, int *strptr_i, const char *str1,
index 09f5395a5e571c02dbe4e7694de403e2811d2848..da94f5e51c3683dbeb67a0f8c418072cb02f34e7 100644 (file)
@@ -149,7 +149,7 @@ int ms_create(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
   joinbuf_init(&join, sptr, cptr, JOINBUF_TYPE_JOIN, 0, 0);
   joinbuf_init(&create, sptr, cptr, JOINBUF_TYPE_CREATE, 0, chanTS);
 
-  /* For each channel in the comma seperated list: */
+  /* For each channel in the comma separated list: */
   for (name = ircd_strtok(&p, parv[1], ","); name;
        name = ircd_strtok(&p, 0, ",")) {
     badop = 0;
index e470cc484b16c17f5d4b0a0bd966012031e88246..28755b03c40c7afa75e1e036f1ac253612a373b8 100644 (file)
@@ -138,7 +138,7 @@ show_usage(struct Client *sptr)
   send_reply(sptr, RPL_LISTUSAGE,
             "Usage: \002/QUOTE LIST\002 \037parameters\037");
   send_reply(sptr, RPL_LISTUSAGE,
-            "Where \037parameters\037 is a space or comma seperated "
+            "Where \037parameters\037 is a space or comma separated "
             "list of one or more of:");
   send_reply(sptr, RPL_LISTUSAGE,
             " \002<\002\037max_users\037    ; Show all channels with less "
index bddfd2795b5a2bba07d5b6255e80382270799add..a4627a3c1c6030224b97815875388e34a39094ad 100644 (file)
@@ -240,7 +240,7 @@ int m_names(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
   else if (*para == '0')
     *para = '\0';
   
-  s = strchr(para, ','); /* Recursively call m_names for each comma-seperated channel. Eww. */
+  s = strchr(para, ','); /* Recursively call m_names for each comma-separated channel. Eww. */
   if (s) {
     parv[1+showingdelayed] = ++s;
     m_names(cptr, sptr, parc, parv);
@@ -382,7 +382,7 @@ int ms_names(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
   else if (*para == '0')
     *para = '\0';
   
-  s = strchr(para, ','); /* Recursively call m_names for each comma-seperated channel. */
+  s = strchr(para, ','); /* Recursively call m_names for each comma-separated channel. */
   if (s) {
     parv[1] = ++s;
     m_names(cptr, sptr, parc, parv);
index cb6212ae4674e9e823f4335783cfd74cadd03a87..b54e20ed20dae4e59383bcdea3685e5d60757177 100644 (file)
@@ -88,7 +88,7 @@ static struct Client* server_list[NN_MAX_SERVER];
  *
  * '\\0' : Because we use '\\0' as end of line.
  *
- * ' '  : Because parse_*() uses this as parameter seperator.
+ * ' '  : Because parse_*() uses this as parameter separator.
  *
  * ':'  : Because parse_server() uses this to detect if a prefix is a
  *        numeric or a name.
index 0ddd46db33fd60f508d7db7271beb344cf85a99b..5e8b21e3f1300b8d1c3ac748c9f36b6f984e5ef8 100644 (file)
@@ -193,10 +193,12 @@ static void connect_dns_callback(void* vptr, struct DNSReply* hp)
 void close_connections(int close_stderr)
 {
   int i;
-  close(0);
-  close(1);
   if (close_stderr)
+  {
+    close(0);
+    close(1);
     close(2);
+  }
   for (i = 3; i < MAXCONNECTIONS; ++i)
     close(i);
 }