mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 18:49:03 -04:00
Fix various documentation comments.
This commit is contained in:
parent
8c3c4f8e82
commit
952ee5cc60
@ -165,7 +165,6 @@ class CoreExport Channel : public Extensible
|
|||||||
|
|
||||||
/** Delete a user pointer to the internal reference list
|
/** Delete a user pointer to the internal reference list
|
||||||
* @param user The user to delete
|
* @param user The user to delete
|
||||||
* @return number of users left on the channel after deletion of the user
|
|
||||||
*/
|
*/
|
||||||
void DelUser(User* user);
|
void DelUser(User* user);
|
||||||
|
|
||||||
|
@ -538,7 +538,6 @@ class CoreExport InspIRCd
|
|||||||
/** Attempt to write the process id to a given file
|
/** Attempt to write the process id to a given file
|
||||||
* @param filename The PID file to attempt to write to
|
* @param filename The PID file to attempt to write to
|
||||||
* @param exitonfail If true and the PID fail cannot be written log to stdout and exit, otherwise only log on failure
|
* @param exitonfail If true and the PID fail cannot be written log to stdout and exit, otherwise only log on failure
|
||||||
* @return This function may bail if the file cannot be written
|
|
||||||
*/
|
*/
|
||||||
void WritePID(const std::string& filename, bool exitonfail = true);
|
void WritePID(const std::string& filename, bool exitonfail = true);
|
||||||
|
|
||||||
|
@ -681,7 +681,7 @@ class CoreExport ModeParser : public fakederef<ModeParser>
|
|||||||
*
|
*
|
||||||
* host.name -> *!*\@host.name
|
* host.name -> *!*\@host.name
|
||||||
*
|
*
|
||||||
* ident@host.name -> *!ident\@host.name
|
* ident\@host.name -> *!ident\@host.name
|
||||||
*
|
*
|
||||||
* This method can be used on both IPV4 and IPV6 user masks.
|
* This method can be used on both IPV4 and IPV6 user masks.
|
||||||
*/
|
*/
|
||||||
|
@ -51,7 +51,6 @@ class Away::EventListener
|
|||||||
|
|
||||||
/** Called when a user wishes to mark themselves as back.
|
/** Called when a user wishes to mark themselves as back.
|
||||||
* @param user The user who is going away.
|
* @param user The user who is going away.
|
||||||
* @param message The away message that the user set.
|
|
||||||
* @return Either MOD_RES_ALLOW to allow the user to mark themself as back, MOD_RES_DENY to
|
* @return Either MOD_RES_ALLOW to allow the user to mark themself as back, MOD_RES_DENY to
|
||||||
* disallow the user to mark themself as back, or MOD_RES_PASSTHRU to let another module
|
* disallow the user to mark themself as back, or MOD_RES_PASSTHRU to let another module
|
||||||
* handle the event.
|
* handle the event.
|
||||||
|
@ -182,12 +182,12 @@ namespace DNS
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Called when this request succeeds
|
/** Called when this request succeeds
|
||||||
* @param r The query sent back from the nameserver
|
* @param req The query sent back from the nameserver
|
||||||
*/
|
*/
|
||||||
virtual void OnLookupComplete(const Query* req) = 0;
|
virtual void OnLookupComplete(const Query* req) = 0;
|
||||||
|
|
||||||
/** Called when this request fails or times out.
|
/** Called when this request fails or times out.
|
||||||
* @param r The query sent back from the nameserver, check the error code.
|
* @param req The query sent back from the nameserver, check the error code.
|
||||||
*/
|
*/
|
||||||
virtual void OnError(const Query* req) { }
|
virtual void OnError(const Query* req) { }
|
||||||
|
|
||||||
|
@ -186,17 +186,18 @@ class HTTPRequest
|
|||||||
/** Initialize HTTPRequest.
|
/** Initialize HTTPRequest.
|
||||||
* This constructor is called by m_httpd.so to initialize the class.
|
* This constructor is called by m_httpd.so to initialize the class.
|
||||||
* @param request_type The request type, e.g. GET, POST, HEAD
|
* @param request_type The request type, e.g. GET, POST, HEAD
|
||||||
|
* @param parsed_uri The URI which was requested by the client.
|
||||||
* @param hdr The headers sent with the request
|
* @param hdr The headers sent with the request
|
||||||
* @param opaque An opaque pointer used internally by m_httpd, which you must pass back to the module in your reply.
|
* @param socket The server socket which this request came in via.
|
||||||
* @param ip The IP address making the web request.
|
* @param ip The IP address making the web request.
|
||||||
* @param pdata The post data (content after headers) received with the request, up to Content-Length in size
|
* @param pdata The post data (content after headers) received with the request, up to Content-Length in size
|
||||||
*/
|
*/
|
||||||
HTTPRequest(const std::string& request_type, const HTTPRequestURI& Parseduri,
|
HTTPRequest(const std::string& request_type, const HTTPRequestURI& parsed_uri, HTTPHeaders* hdr,
|
||||||
HTTPHeaders* hdr, HttpServerSocket* socket, const std::string &ip, const std::string &pdata)
|
HttpServerSocket* socket, const std::string& ip, const std::string& pdata)
|
||||||
: type(request_type)
|
: type(request_type)
|
||||||
, ipaddr(ip)
|
, ipaddr(ip)
|
||||||
, postdata(pdata)
|
, postdata(pdata)
|
||||||
, parseduri(Parseduri)
|
, parseduri(parsed_uri)
|
||||||
, headers(hdr)
|
, headers(hdr)
|
||||||
, sock(socket)
|
, sock(socket)
|
||||||
{
|
{
|
||||||
|
@ -129,9 +129,9 @@ class SQL::Result : public classbase
|
|||||||
/**
|
/**
|
||||||
* Check if there's a column with the specified name in the result
|
* Check if there's a column with the specified name in the result
|
||||||
*
|
*
|
||||||
* @param the column name
|
* @param column The column name.
|
||||||
* @param on success, this is the column index
|
* @param index The place to store the column index if it exists.
|
||||||
* @returns true, or false if the column is not found
|
* @returns If the column exists then true; otherwise, false.
|
||||||
*/
|
*/
|
||||||
virtual bool HasColumn(const std::string& column, size_t& index) = 0;
|
virtual bool HasColumn(const std::string& column, size_t& index) = 0;
|
||||||
};
|
};
|
||||||
|
@ -326,8 +326,6 @@ public:
|
|||||||
* failure (for example, you try and enable
|
* failure (for example, you try and enable
|
||||||
* epoll on a 2.4 linux kernel) then this
|
* epoll on a 2.4 linux kernel) then this
|
||||||
* function may bail back to the shell.
|
* function may bail back to the shell.
|
||||||
* @return void, but it is acceptable for this function to bail back to
|
|
||||||
* the shell or operating system on fatal error.
|
|
||||||
*/
|
*/
|
||||||
static void Init();
|
static void Init();
|
||||||
|
|
||||||
@ -556,8 +554,6 @@ public:
|
|||||||
* allows for the socket engine to re-create its handle
|
* allows for the socket engine to re-create its handle
|
||||||
* after the daemon forks as the socket engine is created
|
* after the daemon forks as the socket engine is created
|
||||||
* long BEFORE the daemon forks.
|
* long BEFORE the daemon forks.
|
||||||
* @return void, but it is acceptable for this function to bail back to
|
|
||||||
* the shell or operating system on fatal error.
|
|
||||||
*/
|
*/
|
||||||
static void RecoverFromFork();
|
static void RecoverFromFork();
|
||||||
|
|
||||||
|
@ -28,10 +28,10 @@ namespace stdalgo
|
|||||||
* Erase a single element from a vector by overwriting it with a copy of the last element,
|
* Erase a single element from a vector by overwriting it with a copy of the last element,
|
||||||
* which is then removed. This, in contrast to vector::erase(), does not result in all
|
* which is then removed. This, in contrast to vector::erase(), does not result in all
|
||||||
* elements after the erased element being moved.
|
* elements after the erased element being moved.
|
||||||
|
* Returns nothing, but all iterators, references and pointers to the erased element and the
|
||||||
|
* last element are invalidated
|
||||||
* @param vect Vector to remove the element from
|
* @param vect Vector to remove the element from
|
||||||
* @param it Iterator to the element to remove
|
* @param it Iterator to the element to remove
|
||||||
* @return Nothing, but all iterators, references and pointers to the erased element and the
|
|
||||||
* last element are invalidated
|
|
||||||
*/
|
*/
|
||||||
template <typename T>
|
template <typename T>
|
||||||
inline void swaperase(typename std::vector<T>& vect, const typename std::vector<T>::iterator& it)
|
inline void swaperase(typename std::vector<T>& vect, const typename std::vector<T>::iterator& it)
|
||||||
|
@ -243,19 +243,19 @@ struct CoreExport ConnectClass : public refcountbase
|
|||||||
class CoreExport User : public Extensible
|
class CoreExport User : public Extensible
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
/** Cached nick!ident@dhost value using the displayed hostname
|
/** Cached nick!ident\@dhost value using the displayed hostname
|
||||||
*/
|
*/
|
||||||
std::string cached_fullhost;
|
std::string cached_fullhost;
|
||||||
|
|
||||||
/** Cached ident@ip value using the real IP address
|
/** Cached ident\@ip value using the real IP address
|
||||||
*/
|
*/
|
||||||
std::string cached_hostip;
|
std::string cached_hostip;
|
||||||
|
|
||||||
/** Cached ident@realhost value using the real hostname
|
/** Cached ident\@realhost value using the real hostname
|
||||||
*/
|
*/
|
||||||
std::string cached_makehost;
|
std::string cached_makehost;
|
||||||
|
|
||||||
/** Cached nick!ident@realhost value using the real hostname
|
/** Cached nick!ident\@realhost value using the real hostname
|
||||||
*/
|
*/
|
||||||
std::string cached_fullrealhost;
|
std::string cached_fullrealhost;
|
||||||
|
|
||||||
@ -850,7 +850,6 @@ class CoreExport LocalUser : public User, public insp::intrusive_list_node<Local
|
|||||||
|
|
||||||
/** Set the connect class to which this user belongs to.
|
/** Set the connect class to which this user belongs to.
|
||||||
* @param explicit_name Set this string to tie the user to a specific class name. Otherwise, the class is fitted by checking \<connect> tags from the configuration file.
|
* @param explicit_name Set this string to tie the user to a specific class name. Otherwise, the class is fitted by checking \<connect> tags from the configuration file.
|
||||||
* @return A reference to this user's current connect class.
|
|
||||||
*/
|
*/
|
||||||
void SetClass(const std::string &explicit_name = "");
|
void SetClass(const std::string &explicit_name = "");
|
||||||
|
|
||||||
|
@ -284,7 +284,7 @@ class DataKeeper
|
|||||||
|
|
||||||
/** Restore all modes and extensions of all members on a channel
|
/** Restore all modes and extensions of all members on a channel
|
||||||
* @param chan Channel whose members are being restored
|
* @param chan Channel whose members are being restored
|
||||||
* @param memberdata Data to restore
|
* @param memberdatalist Data to restore
|
||||||
* @param modechange Mode change to populate with prefix modes
|
* @param modechange Mode change to populate with prefix modes
|
||||||
*/
|
*/
|
||||||
void RestoreMemberData(Channel* chan, const std::vector<ChanData::MemberData>& memberdatalist, Modes::ChangeList& modechange);
|
void RestoreMemberData(Channel* chan, const std::vector<ChanData::MemberData>& memberdatalist, Modes::ChangeList& modechange);
|
||||||
|
@ -37,15 +37,6 @@ static bool added_zline = false;
|
|||||||
class RLine : public XLine
|
class RLine : public XLine
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
/** Create a R-line.
|
|
||||||
* @param s_time The set time
|
|
||||||
* @param d The duration of the xline
|
|
||||||
* @param src The sender of the xline
|
|
||||||
* @param re The reason of the xline
|
|
||||||
* @param regex Pattern to match with
|
|
||||||
* @
|
|
||||||
*/
|
|
||||||
RLine(time_t s_time, unsigned long d, const std::string& src, const std::string& re, const std::string& regexs, dynamic_reference<RegexFactory>& rxfactory)
|
RLine(time_t s_time, unsigned long d, const std::string& src, const std::string& re, const std::string& regexs, dynamic_reference<RegexFactory>& rxfactory)
|
||||||
: XLine(s_time, d, src, re, "R")
|
: XLine(s_time, d, src, re, "R")
|
||||||
, matchtext(regexs)
|
, matchtext(regexs)
|
||||||
@ -56,8 +47,6 @@ class RLine : public XLine
|
|||||||
regex = rxfactory->Create(regexs);
|
regex = rxfactory->Create(regexs);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Destructor
|
|
||||||
*/
|
|
||||||
~RLine()
|
~RLine()
|
||||||
{
|
{
|
||||||
delete regex;
|
delete regex;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user