mirror of
https://github.com/osmarks/ngircd.git
synced 2024-12-12 01:40:27 +00:00
Spelling fixes, mostly in file comments
This commit is contained in:
parent
5f494ec5fe
commit
d702ebab0a
@ -174,7 +174,7 @@ Channel_InitPredefined( void )
|
|||||||
IRC_MODE(Client_ThisServer(), &Req);
|
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]);
|
free(conf_chan->modes[n]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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.
|
* @return CLIENT structure or NULL if none could be found.
|
||||||
*/
|
*/
|
||||||
GLOBAL CLIENT *
|
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.
|
* @return Pointer to CLIENT structure or NULL on error.
|
||||||
*/
|
*/
|
||||||
|
@ -1292,7 +1292,7 @@ WarnPAM(const char UNUSED *File, int UNUSED Line)
|
|||||||
/**
|
/**
|
||||||
* Handle variable in [Global] configuration section.
|
* 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 Var Variable name.
|
||||||
* @param Arg Variable argument.
|
* @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.
|
* 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 Var Variable name.
|
||||||
* @param Arg Variable argument.
|
* @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.
|
* 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 Var Variable name.
|
||||||
* @param Arg Variable argument.
|
* @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.
|
* 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 Var Variable name.
|
||||||
* @param Arg Variable argument.
|
* @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.
|
* 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 Var Variable name.
|
||||||
* @param Arg Variable argument.
|
* @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.
|
* 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 Var Variable name.
|
||||||
* @param Arg Variable argument.
|
* @param Arg Variable argument.
|
||||||
*/
|
*/
|
||||||
@ -1958,7 +1958,7 @@ Handle_Channelname(struct Conf_Channel *new_chan, const char *name)
|
|||||||
/**
|
/**
|
||||||
* Handle variable in [Channel] configuration section.
|
* 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 Var Variable name.
|
||||||
* @param Arg Variable argument.
|
* @param Arg Variable argument.
|
||||||
*/
|
*/
|
||||||
|
@ -241,7 +241,7 @@ GLOBAL unsigned int Conf_MaxNickLength;
|
|||||||
/** Maximum number of channels returned to /list */
|
/** Maximum number of channels returned to /list */
|
||||||
GLOBAL int Conf_MaxListSize;
|
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;
|
GLOBAL time_t Conf_MaxPenaltyTime;
|
||||||
|
|
||||||
#ifndef STRICT_RFC
|
#ifndef STRICT_RFC
|
||||||
|
@ -68,7 +68,7 @@ Conn_GetSignon(CONN_ID Idx)
|
|||||||
GLOBAL time_t
|
GLOBAL time_t
|
||||||
Conn_GetIdle( CONN_ID Idx )
|
Conn_GetIdle( CONN_ID Idx )
|
||||||
{
|
{
|
||||||
/* Return Idle-Timer of a connetion */
|
/* Return Idle-Timer of a connection */
|
||||||
assert( Idx > NONE );
|
assert( Idx > NONE );
|
||||||
return time( NULL ) - My_Connections[Idx].lastprivmsg;
|
return time( NULL ) - My_Connections[Idx].lastprivmsg;
|
||||||
} /* Conn_GetIdle */
|
} /* Conn_GetIdle */
|
||||||
|
@ -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
|
* 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,
|
* 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 af Address family of the socket.
|
||||||
* @param sock Socket handle.
|
* @param sock Socket handle.
|
||||||
@ -804,7 +804,7 @@ Conn_Handler(void)
|
|||||||
* the result is a valid IRC message (oversized messages are shortened, for
|
* 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.
|
* 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().
|
* @param Format Format string, see printf().
|
||||||
* @returns true on success, false otherwise.
|
* @returns true on success, false otherwise.
|
||||||
*/
|
*/
|
||||||
@ -1186,7 +1186,7 @@ Conn_CountMax(void)
|
|||||||
} /* Conn_CountMax */
|
} /* 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.
|
* @returns Number of connections accepted.
|
||||||
*/
|
*/
|
||||||
@ -1540,7 +1540,7 @@ Account_Connection(void)
|
|||||||
* a 1:1 mapping today) and enlarge the "connection pool" accordingly.
|
* a 1:1 mapping today) and enlarge the "connection pool" accordingly.
|
||||||
*
|
*
|
||||||
* @param Sock Socket handle.
|
* @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
|
static CONN_ID
|
||||||
Socket2Index( int Sock )
|
Socket2Index( int Sock )
|
||||||
|
@ -203,7 +203,7 @@
|
|||||||
|
|
||||||
/* Defaults and limits for IRC commands */
|
/* 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
|
#define MAX_HNDL_CHANNEL_LISTS 50
|
||||||
|
|
||||||
/** Max. number of channel modes with arguments per MODE command. */
|
/** Max. number of channel modes with arguments per MODE command. */
|
||||||
|
@ -1375,7 +1375,7 @@ IRC_WHOWAS( CLIENT *Client, REQUEST *Req )
|
|||||||
/**
|
/**
|
||||||
* Send LUSERS reply to a client.
|
* Send LUSERS reply to a client.
|
||||||
*
|
*
|
||||||
* @param Client The receipient of the information.
|
* @param Client The recipient of the information.
|
||||||
* @return CONNECTED or DISCONNECTED.
|
* @return CONNECTED or DISCONNECTED.
|
||||||
*/
|
*/
|
||||||
GLOBAL bool
|
GLOBAL bool
|
||||||
|
@ -406,7 +406,7 @@ IRC_WriteStrServersPrefixFlag_CB(CLIENT *ExceptOf, CLIENT *Prefix, char Flag,
|
|||||||
/**
|
/**
|
||||||
* Send a message to all "related" clients.
|
* 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.
|
* sending this message.
|
||||||
*
|
*
|
||||||
* The message is only sent once per remote server.
|
* The message is only sent once per remote server.
|
||||||
|
@ -131,7 +131,7 @@ IRC_ERROR(CLIENT *Client, REQUEST *Req)
|
|||||||
* in this case, and the prefix in Req is NULL.
|
* in this case, and the prefix in Req is NULL.
|
||||||
*
|
*
|
||||||
* @param Client The client from which this command has been received or
|
* @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.
|
* @param Req Request structure with prefix and all parameters.
|
||||||
* @return CONNECTED or DISCONNECTED.
|
* @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? */
|
/* Do we know such a client in the network? */
|
||||||
c = Client_Search(Nick);
|
c = Client_Search(Nick);
|
||||||
if (!c) {
|
if (!c) {
|
||||||
LogDebug("Client with nick \"%s\" is unknown, not forwaring.", Nick);
|
LogDebug("Client with nick \"%s\" is unknown, not forwarding.", Nick);
|
||||||
return CONNECTED;
|
return CONNECTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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.
|
* 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.
|
* @param Syslog_Mode Set to true if ngIRCd is configured to log to the syslog.
|
||||||
|
@ -758,7 +758,7 @@ NGIRCd_Init(bool NGIRCd_NoDaemon)
|
|||||||
initialized = true;
|
initialized = true;
|
||||||
|
|
||||||
/* Normally a child process is forked which isn't any longer
|
/* 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). */
|
* to disable this "daemon mode" (useful for debugging). */
|
||||||
if (!NGIRCd_NoDaemon) {
|
if (!NGIRCd_NoDaemon) {
|
||||||
pid = fork();
|
pid = fork();
|
||||||
@ -828,7 +828,7 @@ NGIRCd_Init(bool NGIRCd_NoDaemon)
|
|||||||
"Can't change working directory to \"%s\": %s!",
|
"Can't change working directory to \"%s\": %s!",
|
||||||
pwd->pw_dir, strerror(errno));
|
pwd->pw_dir, strerror(errno));
|
||||||
} else
|
} 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;
|
return true;
|
||||||
out:
|
out:
|
||||||
|
Loading…
Reference in New Issue
Block a user