]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Spelling fixes, mostly in file comments
authorAlexander Barton <alex@barton.de>
Fri, 30 Dec 2022 14:37:35 +0000 (15:37 +0100)
committerAlexander Barton <alex@barton.de>
Tue, 16 Jan 2024 21:32:33 +0000 (22:32 +0100)
12 files changed:
src/ngircd/channel.c
src/ngircd/client.c
src/ngircd/conf.c
src/ngircd/conf.h
src/ngircd/conn-func.c
src/ngircd/conn.c
src/ngircd/defines.h
src/ngircd/irc-info.c
src/ngircd/irc-write.c
src/ngircd/irc.c
src/ngircd/log.c
src/ngircd/ngircd.c

index 03af496baf6631374aaa51fc7e6d664a86334709..bf8918634910b23c57b8b1347ef4e7d49af75b88 100644 (file)
@@ -174,7 +174,7 @@ Channel_InitPredefined( void )
                                        IRC_MODE(Client_ThisServer(), &Req);
                                }
 
-                               /* Original channel modes srings are no longer needed */
+                               /* Original channel modes strings are no longer needed */
                                free(conf_chan->modes[n]);
                        }
                }
index 48768514f950e4f1ad41db94d73375206defd739..70ac28f07904bc82f97391a9db675d48505dae85 100644 (file)
@@ -653,7 +653,7 @@ Client_SearchServer(const char *Mask)
 
 
 /**
- * Get client structure ("introducer") identfied by a server token.
+ * Get client structure ("introducer") identified by a server token.
  * @return CLIENT structure or NULL if none could be found.
  */
 GLOBAL CLIENT *
@@ -1378,7 +1378,7 @@ MyCount( CLIENT_TYPE Type )
 
 
 /**
- * Allocate and initialize new CLIENT strcuture.
+ * Allocate and initialize new CLIENT structure.
  *
  * @return Pointer to CLIENT structure or NULL on error.
  */
index 84dfdd01212e2f05f12737dcbea05041070cb961..2480249fcbce875115e494655e072977c6c2f38d 100644 (file)
@@ -1292,7 +1292,7 @@ WarnPAM(const char UNUSED *File, int UNUSED Line)
 /**
  * Handle variable in [Global] configuration section.
  *
- * @param Line Line numer in configuration file.
+ * @param Line Line number in configuration file.
  * @param Var  Variable name.
  * @param Arg  Variable argument.
  */
@@ -1447,7 +1447,7 @@ Handle_GLOBAL(const char *File, int Line, char *Var, char *Arg )
 /**
  * Handle variable in [Limits] configuration section.
  *
- * @param Line Line numer in configuration file.
+ * @param Line Line number in configuration file.
  * @param Var  Variable name.
  * @param Arg  Variable argument.
  */
@@ -1536,7 +1536,7 @@ Handle_LIMITS(const char *File, int Line, char *Var, char *Arg)
 /**
  * Handle variable in [Options] configuration section.
  *
- * @param Line Line numer in configuration file.
+ * @param Line Line number in configuration file.
  * @param Var  Variable name.
  * @param Arg  Variable argument.
  */
@@ -1728,7 +1728,7 @@ Handle_OPTIONS(const char *File, int Line, char *Var, char *Arg)
 /**
  * Handle variable in [SSL] configuration section.
  *
- * @param Line Line numer in configuration file.
+ * @param Line Line number in configuration file.
  * @param Var  Variable name.
  * @param Arg  Variable argument.
  */
@@ -1781,7 +1781,7 @@ Handle_SSL(const char *File, int Line, char *Var, char *Arg)
 /**
  * Handle variable in [Operator] configuration section.
  *
- * @param Line Line numer in configuration file.
+ * @param Line Line number in configuration file.
  * @param Var  Variable name.
  * @param Arg  Variable argument.
  */
@@ -1828,7 +1828,7 @@ Handle_OPERATOR(const char *File, int Line, char *Var, char *Arg )
 /**
  * Handle variable in [Server] configuration section.
  *
- * @param Line Line numer in configuration file.
+ * @param Line Line number in configuration file.
  * @param Var  Variable name.
  * @param Arg  Variable argument.
  */
@@ -1958,7 +1958,7 @@ Handle_Channelname(struct Conf_Channel *new_chan, const char *name)
 /**
  * Handle variable in [Channel] configuration section.
  *
- * @param Line Line numer in configuration file.
+ * @param Line Line number in configuration file.
  * @param Var  Variable name.
  * @param Arg  Variable argument.
  */
index f3e2c5a573936a8df5588cba342d8b5f63566f71..789d3de7f38385bcac66e91ab2ca7482511684e5 100644 (file)
@@ -241,7 +241,7 @@ GLOBAL unsigned int Conf_MaxNickLength;
 /** Maximum number of channels returned to /list */
 GLOBAL int Conf_MaxListSize;
 
-/** Maximium seconds to add per "penalty". -1 = unlimited. */
+/** Maximum seconds to add per "penalty". -1 = unlimited. */
 GLOBAL time_t Conf_MaxPenaltyTime;
 
 #ifndef STRICT_RFC
index 25ae1b26dff830e0b457e5ffe1461d2ca70c9776..c14a56ae2a28fe60f1549fd5b82ce851ebdfe191 100644 (file)
@@ -68,7 +68,7 @@ Conn_GetSignon(CONN_ID Idx)
 GLOBAL time_t
 Conn_GetIdle( CONN_ID Idx )
 {
-       /* Return Idle-Timer of a connetion */
+       /* Return Idle-Timer of a connection */
        assert( Idx > NONE );
        return time( NULL ) - My_Connections[Idx].lastprivmsg;
 } /* Conn_GetIdle */
index f8c6e2c76fdf45d4269d8c1046626ab42ab6f0d6..ae442b4ddbd5abf9820f804397d057a9082af59e 100644 (file)
@@ -575,7 +575,7 @@ InitSinaddrListenAddr(ng_ipaddr_t *addr, const char *listen_addrstr, UINT16 Port
 /**
  * Set a socket to "IPv6 only". If the given socket doesn't belong to the
  * AF_INET6 family, or the operating system doesn't support this functionality,
- * this function retruns silently.
+ * this function returns silently.
  *
  * @param af   Address family of the socket.
  * @param sock Socket handle.
@@ -804,7 +804,7 @@ Conn_Handler(void)
  * the result is a valid IRC message (oversized messages are shortened, for
  * example). Then it calls the Conn_Write() function to do the actual sending.
  *
- * @param Idx          Index fo the connection.
+ * @param Idx          Index of the connection.
  * @param Format       Format string, see printf().
  * @returns            true on success, false otherwise.
  */
@@ -1186,7 +1186,7 @@ Conn_CountMax(void)
 } /* Conn_CountMax */
 
 /**
- * Get number of connections accepted since the daemon startet.
+ * Get number of connections accepted since the daemon started.
  *
  * @returns    Number of connections accepted.
  */
@@ -1540,7 +1540,7 @@ Account_Connection(void)
  * a 1:1 mapping today) and enlarge the "connection pool" accordingly.
  *
  * @param Sock Socket handle.
- * @returns    Connecion index or NONE when the pool is too small.
+ * @returns    Connection index or NONE when the pool is too small.
  */
 static CONN_ID
 Socket2Index( int Sock )
index a325f5a32499f95626664b9df41243124ac80053..0b44a5b4f03e14d9cc2df5cb3ed334fe6bf4a782 100644 (file)
 
 /* Defaults and limits for IRC commands */
 
-/** Max. number of elemets allowed in channel invite and ban lists. */
+/** Max. number of elements allowed in channel invite and ban lists. */
 #define MAX_HNDL_CHANNEL_LISTS 50
 
 /** Max. number of channel modes with arguments per MODE command. */
index 718aa9905835ac0482cc0e74ad4643090517d558..8fcd1b1164c71f520ce6774c8322fdf8b77bc345 100644 (file)
@@ -1375,7 +1375,7 @@ IRC_WHOWAS( CLIENT *Client, REQUEST *Req )
 /**
  * Send LUSERS reply to a client.
  *
- * @param Client The receipient of the information.
+ * @param Client The recipient of the information.
  * @return CONNECTED or DISCONNECTED.
  */
 GLOBAL bool
index 8f3fd53d58ecb5b4805663f74756e1b8d7a5c9e6..a3700c8351e789f74d5229e16fbfd5c2329c1f21 100644 (file)
@@ -406,7 +406,7 @@ IRC_WriteStrServersPrefixFlag_CB(CLIENT *ExceptOf, CLIENT *Prefix, char Flag,
 /**
  * Send a message to all "related" clients.
  *
- * Related clients are the one that share one ore more channels with the client
+ * Related clients are the one that share one or more channels with the client
  * sending this message.
  *
  * The message is only sent once per remote server.
index 5cf4fe235b175faafe35867fed26958dec596ea5..3b098d0aa1095ecbe99c41fafb128c991468f269 100644 (file)
@@ -131,7 +131,7 @@ IRC_ERROR(CLIENT *Client, REQUEST *Req)
  * in this case, and the prefix in Req is NULL.
  *
  * @param Client The client from which this command has been received or
- * Client_ThisServer() when generated interanlly.
+ * Client_ThisServer() when generated internally.
  * @param Req Request structure with prefix and all parameters.
  * @return CONNECTED or DISCONNECTED.
  */
@@ -358,7 +358,7 @@ IRC_KillClient(CLIENT *Client, CLIENT *From, const char *Nick, const char *Reaso
        /* Do we know such a client in the network? */
        c = Client_Search(Nick);
        if (!c) {
-               LogDebug("Client with nick \"%s\" is unknown, not forwaring.", Nick);
+               LogDebug("Client with nick \"%s\" is unknown, not forwarding.", Nick);
                return CONNECTED;
        }
 
index dae53f9f5b45481b56be1295eb451eb2f162a986..bb849981146c85a8e0cb1637562874e71b2ea05b 100644 (file)
@@ -60,7 +60,7 @@ Log_Message(int Level, const char *msg)
 
 
 /**
- * Initialitze logging.
+ * Initialize logging.
  * This function is called before the configuration file is read in.
  *
  * @param Syslog_Mode Set to true if ngIRCd is configured to log to the syslog.
index e9faa65734c83369232926940881373cc89cb780..04462a6d1fa8b15b77c9768230b74eeb039824bb 100644 (file)
@@ -758,7 +758,7 @@ NGIRCd_Init(bool NGIRCd_NoDaemon)
        initialized = true;
 
        /* Normally a child process is forked which isn't any longer
-        * connected to ther controlling terminal. Use "--nodaemon"
+        * connected to the controlling terminal. Use "--nodaemon"
         * to disable this "daemon mode" (useful for debugging). */
        if (!NGIRCd_NoDaemon) {
                pid = fork();
@@ -828,7 +828,7 @@ NGIRCd_Init(bool NGIRCd_NoDaemon)
                            "Can't change working directory to \"%s\": %s!",
                            pwd->pw_dir, strerror(errno));
        } else
-               Log(LOG_ERR, "Can't get user informaton for UID %d!?", Conf_UID);
+               Log(LOG_ERR, "Can't get user information for UID %d!?", Conf_UID);
 
        return true;
  out: