about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2022-12-30 15:37:35 +0100
committerAlexander Barton <alex@barton.de>2024-01-16 22:32:33 +0100
commitd702ebab0ad69905293466594359645835ba65b5 (patch)
tree5aa41d92627f4dd9a92614ee56513499c0945bf3 /src
parent5f494ec5fe7f22ef198f98c2e752237e91363e4f (diff)
downloadngircd-d702ebab0ad69905293466594359645835ba65b5.tar.gz
ngircd-d702ebab0ad69905293466594359645835ba65b5.zip
Spelling fixes, mostly in file comments
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/channel.c2
-rw-r--r--src/ngircd/client.c4
-rw-r--r--src/ngircd/conf.c14
-rw-r--r--src/ngircd/conf.h2
-rw-r--r--src/ngircd/conn-func.c2
-rw-r--r--src/ngircd/conn.c8
-rw-r--r--src/ngircd/defines.h2
-rw-r--r--src/ngircd/irc-info.c2
-rw-r--r--src/ngircd/irc-write.c2
-rw-r--r--src/ngircd/irc.c4
-rw-r--r--src/ngircd/log.c2
-rw-r--r--src/ngircd/ngircd.c4
12 files changed, 24 insertions, 24 deletions
diff --git a/src/ngircd/channel.c b/src/ngircd/channel.c
index 03af496b..bf891863 100644
--- a/src/ngircd/channel.c
+++ b/src/ngircd/channel.c
@@ -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]);
 			}
 		}
diff --git a/src/ngircd/client.c b/src/ngircd/client.c
index 48768514..70ac28f0 100644
--- a/src/ngircd/client.c
+++ b/src/ngircd/client.c
@@ -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.
  */
diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c
index 84dfdd01..2480249f 100644
--- a/src/ngircd/conf.c
+++ b/src/ngircd/conf.c
@@ -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.
  */
diff --git a/src/ngircd/conf.h b/src/ngircd/conf.h
index f3e2c5a5..789d3de7 100644
--- a/src/ngircd/conf.h
+++ b/src/ngircd/conf.h
@@ -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
diff --git a/src/ngircd/conn-func.c b/src/ngircd/conn-func.c
index 25ae1b26..c14a56ae 100644
--- a/src/ngircd/conn-func.c
+++ b/src/ngircd/conn-func.c
@@ -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 */
diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c
index f8c6e2c7..ae442b4d 100644
--- a/src/ngircd/conn.c
+++ b/src/ngircd/conn.c
@@ -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 )
diff --git a/src/ngircd/defines.h b/src/ngircd/defines.h
index a325f5a3..0b44a5b4 100644
--- a/src/ngircd/defines.h
+++ b/src/ngircd/defines.h
@@ -203,7 +203,7 @@
 
 /* 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. */
diff --git a/src/ngircd/irc-info.c b/src/ngircd/irc-info.c
index 718aa990..8fcd1b11 100644
--- a/src/ngircd/irc-info.c
+++ b/src/ngircd/irc-info.c
@@ -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
diff --git a/src/ngircd/irc-write.c b/src/ngircd/irc-write.c
index 8f3fd53d..a3700c83 100644
--- a/src/ngircd/irc-write.c
+++ b/src/ngircd/irc-write.c
@@ -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.
diff --git a/src/ngircd/irc.c b/src/ngircd/irc.c
index 5cf4fe23..3b098d0a 100644
--- a/src/ngircd/irc.c
+++ b/src/ngircd/irc.c
@@ -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;
 	}
 
diff --git a/src/ngircd/log.c b/src/ngircd/log.c
index dae53f9f..bb849981 100644
--- a/src/ngircd/log.c
+++ b/src/ngircd/log.c
@@ -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.
diff --git a/src/ngircd/ngircd.c b/src/ngircd/ngircd.c
index e9faa657..04462a6d 100644
--- a/src/ngircd/ngircd.c
+++ b/src/ngircd/ngircd.c
@@ -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: