mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
Const correct the xline header.
This commit is contained in:
parent
e02637d1ed
commit
591cb8e0b9
@ -195,9 +195,8 @@ public:
|
||||
: XLine(s_time, d, src, re, "K")
|
||||
, usermask(user)
|
||||
, hostmask(host)
|
||||
, matchtext(INSP_FORMAT("{}@{}", user, host))
|
||||
{
|
||||
matchtext = this->usermask;
|
||||
matchtext.append("@").append(this->hostmask);
|
||||
}
|
||||
|
||||
bool Matches(User* u) const override;
|
||||
@ -211,12 +210,12 @@ public:
|
||||
bool IsBurstable() override;
|
||||
|
||||
/** Username pattern to match. */
|
||||
std::string usermask;
|
||||
const std::string usermask;
|
||||
|
||||
/** Hostname pattern to match. */
|
||||
std::string hostmask;
|
||||
const std::string hostmask;
|
||||
|
||||
std::string matchtext;
|
||||
const std::string matchtext;
|
||||
};
|
||||
|
||||
/** GLine class
|
||||
@ -237,9 +236,8 @@ public:
|
||||
: XLine(s_time, d, src, re, "G")
|
||||
, usermask(user)
|
||||
, hostmask(host)
|
||||
, matchtext(INSP_FORMAT("{}@{}", user, host))
|
||||
{
|
||||
matchtext = this->usermask;
|
||||
matchtext.append("@").append(this->hostmask);
|
||||
}
|
||||
|
||||
bool Matches(User* u) const override;
|
||||
@ -251,12 +249,12 @@ public:
|
||||
const std::string& Displayable() const override;
|
||||
|
||||
/** Username pattern to match. */
|
||||
std::string usermask;
|
||||
const std::string usermask;
|
||||
|
||||
/** Hostname pattern to match. */
|
||||
std::string hostmask;
|
||||
const std::string hostmask;
|
||||
|
||||
std::string matchtext;
|
||||
const std::string matchtext;
|
||||
};
|
||||
|
||||
/** ELine class
|
||||
@ -277,9 +275,8 @@ public:
|
||||
: XLine(s_time, d, src, re, "E")
|
||||
, usermask(user)
|
||||
, hostmask(host)
|
||||
, matchtext(INSP_FORMAT("{}@{}", user, host))
|
||||
{
|
||||
matchtext = this->usermask;
|
||||
matchtext.append("@").append(this->hostmask);
|
||||
}
|
||||
|
||||
bool Matches(User* u) const override;
|
||||
@ -293,12 +290,12 @@ public:
|
||||
const std::string& Displayable() const override;
|
||||
|
||||
/** Username pattern to match. */
|
||||
std::string usermask;
|
||||
const std::string usermask;
|
||||
|
||||
/** Hostname pattern to match. */
|
||||
std::string hostmask;
|
||||
const std::string hostmask;
|
||||
|
||||
std::string matchtext;
|
||||
const std::string matchtext;
|
||||
};
|
||||
|
||||
/** ZLine class
|
||||
@ -330,7 +327,7 @@ public:
|
||||
|
||||
/** IP mask (no user part)
|
||||
*/
|
||||
std::string ipaddr;
|
||||
const std::string ipaddr;
|
||||
};
|
||||
|
||||
/** QLine class
|
||||
@ -362,7 +359,7 @@ public:
|
||||
|
||||
/** Nickname mask
|
||||
*/
|
||||
std::string nick;
|
||||
const std::string nick;
|
||||
};
|
||||
|
||||
/** XLineFactory is used to generate an XLine pointer, given just the
|
||||
@ -375,8 +372,7 @@ public:
|
||||
class CoreExport XLineFactory
|
||||
{
|
||||
protected:
|
||||
|
||||
std::string type;
|
||||
const std::string type;
|
||||
|
||||
public:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user