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]);
}
}
/**
- * 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 *
/**
- * Allocate and initialize new CLIENT strcuture.
+ * Allocate and initialize new CLIENT structure.
*
* @return Pointer to CLIENT structure or NULL on error.
*/
/**
* 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.
*/
/**
* 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.
*/
/**
* 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.
*/
/**
* 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.
*/
/**
* 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.
*/
/**
* 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.
*/
/**
* 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.
*/
/** 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
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 */
/**
* 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.
* 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.
*/
} /* 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.
*/
* 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 )
/* 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. */
/**
* 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
/**
* 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.
* 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.
*/
/* 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;
}
/**
- * 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.
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();
"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: