mirror of
https://github.com/anope/anope.git
synced 2026-07-04 18:33:12 +02:00
Make functions that don't use this static.
This commit is contained in:
@@ -514,7 +514,7 @@ class ProtoBahamut final
|
||||
IRCDMessageSJoin message_sjoin;
|
||||
IRCDMessageTopic message_topic;
|
||||
|
||||
void AddModes()
|
||||
static void AddModes()
|
||||
{
|
||||
/* Add user modes */
|
||||
ModeManager::AddUserMode(new UserModeOperOnly("SERV_ADMIN", 'A'));
|
||||
|
||||
@@ -721,7 +721,7 @@ class ProtoHybrid final
|
||||
|
||||
bool use_server_side_mlock;
|
||||
|
||||
void AddModes()
|
||||
static void AddModes()
|
||||
{
|
||||
/* Add user modes */
|
||||
ModeManager::AddUserMode(new UserModeOperOnly("ADMIN", 'a'));
|
||||
|
||||
@@ -69,7 +69,7 @@ class InspIRCdProto final
|
||||
: public IRCDProto
|
||||
{
|
||||
private:
|
||||
void SendChgIdentInternal(const Anope::string &nick, const Anope::string &vIdent)
|
||||
static void SendChgIdentInternal(const Anope::string &nick, const Anope::string &vIdent)
|
||||
{
|
||||
if (!Servers::Capab.count("CHGIDENT"))
|
||||
Log() << "CHGIDENT not loaded!";
|
||||
@@ -77,7 +77,7 @@ private:
|
||||
Uplink::Send("CHGIDENT", nick, vIdent);
|
||||
}
|
||||
|
||||
void SendChgHostInternal(const Anope::string &nick, const Anope::string &vhost)
|
||||
static void SendChgHostInternal(const Anope::string &nick, const Anope::string &vhost)
|
||||
{
|
||||
if (!Servers::Capab.count("CHGHOST"))
|
||||
Log() << "CHGHOST not loaded!";
|
||||
@@ -85,17 +85,17 @@ private:
|
||||
Uplink::Send("CHGHOST", nick, vhost);
|
||||
}
|
||||
|
||||
void SendAddLine(const Anope::string &xtype, const Anope::string &mask, time_t duration, const Anope::string &addedby, const Anope::string &reason)
|
||||
static void SendAddLine(const Anope::string &xtype, const Anope::string &mask, time_t duration, const Anope::string &addedby, const Anope::string &reason)
|
||||
{
|
||||
Uplink::Send("ADDLINE", xtype, mask, addedby, Anope::CurTime, duration, reason);
|
||||
}
|
||||
|
||||
void SendDelLine(const Anope::string &xtype, const Anope::string &mask)
|
||||
static void SendDelLine(const Anope::string &xtype, const Anope::string &mask)
|
||||
{
|
||||
Uplink::Send("DELLINE", xtype, mask);
|
||||
}
|
||||
|
||||
void SendAccount(const Anope::string &uid, NickAlias *na)
|
||||
static void SendAccount(const Anope::string &uid, NickAlias *na)
|
||||
{
|
||||
Uplink::Send("METADATA", uid, "accountid", na ? na->nc->GetId() : Anope::string());
|
||||
Uplink::Send("METADATA", uid, "accountname", na ? na->nc->display : Anope::string());
|
||||
@@ -782,7 +782,7 @@ public:
|
||||
return IsValid(value, false);
|
||||
}
|
||||
|
||||
bool IsValid(const Anope::string &value, bool historymode) const
|
||||
static bool IsValid(const Anope::string &value, bool historymode)
|
||||
{
|
||||
if (value.empty())
|
||||
return false; // empty param is never valid
|
||||
@@ -2027,7 +2027,7 @@ class ProtoInspIRCd final
|
||||
|
||||
bool use_server_side_topiclock, use_server_side_mlock;
|
||||
|
||||
void SendChannelMetadata(Channel *c, const Anope::string &metadataname, const Anope::string &value)
|
||||
static void SendChannelMetadata(Channel *c, const Anope::string &metadataname, const Anope::string &value)
|
||||
{
|
||||
Uplink::Send("METADATA", c->name, c->creation_time, metadataname, value);
|
||||
}
|
||||
|
||||
@@ -624,7 +624,7 @@ class ProtongIRCd final
|
||||
IRCDMessageServer message_server;
|
||||
IRCDMessageTopic message_topic;
|
||||
|
||||
void AddModes()
|
||||
static void AddModes()
|
||||
{
|
||||
/* Add user modes */
|
||||
ModeManager::AddUserMode(new UserMode("NOCTCP", 'b'));
|
||||
|
||||
@@ -368,7 +368,7 @@ class ProtoPlexus final
|
||||
IRCDMessageServer message_server;
|
||||
IRCDMessageUID message_uid;
|
||||
|
||||
void AddModes()
|
||||
static void AddModes()
|
||||
{
|
||||
/* Add user modes */
|
||||
ModeManager::AddUserMode(new UserModeOperOnly("ADMIN", 'a'));
|
||||
|
||||
@@ -18,7 +18,7 @@ static ServiceReference<IRCDProto> hybrid("IRCDProto", "hybrid");
|
||||
class RatboxProto final
|
||||
: public IRCDProto
|
||||
{
|
||||
BotInfo *FindIntroduced()
|
||||
static BotInfo *FindIntroduced()
|
||||
{
|
||||
BotInfo *bi = Config->GetClient("OperServ");
|
||||
|
||||
@@ -294,7 +294,7 @@ class ProtoRatbox final
|
||||
IRCDMessageTBurst message_tburst;
|
||||
IRCDMessageUID message_uid;
|
||||
|
||||
void AddModes()
|
||||
static void AddModes()
|
||||
{
|
||||
/* user modes */
|
||||
ModeManager::AddUserMode(new UserModeOperOnly("ADMIN", 'a'));
|
||||
|
||||
@@ -356,7 +356,7 @@ class ProtoSolanum final
|
||||
|
||||
bool use_server_side_mlock;
|
||||
|
||||
void AddModes()
|
||||
static void AddModes()
|
||||
{
|
||||
/* Add user modes */
|
||||
ModeManager::AddUserMode(new UserMode("NOFORWARD", 'Q'));
|
||||
|
||||
Reference in New Issue
Block a user