1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 22:53:12 +02:00

Use C++11's explicit override feature if available

This commit is contained in:
Adam
2012-02-18 15:04:26 -05:00
parent 41e8d27602
commit ee5cd8493e
201 changed files with 995 additions and 1003 deletions
+1 -1
View File
@@ -246,7 +246,7 @@ else(MSVC)
set(CXXFLAGS "${CXXFLAGS} -Wall -Wshadow")
# If on a *nix system, also set the compile flags to remove GNU extensions (favor ISO C++) as well as reject non-ISO C++ code, also remove all leading underscores in exported symbols (only on GNU compiler)
if(UNIX)
set(CXXFLAGS "${CXXFLAGS} -ansi -pedantic")
set(CXXFLAGS "${CXXFLAGS} -ansi -pedantic ${CMAKE_CXX_FLAGS}")
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
set(CXXFLAGS "${CXXFLAGS} -Wno-long-long -fno-leading-underscore")
endif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
+1 -1
View File
@@ -19,7 +19,7 @@ endif(NOT WIN32)
set(PCH_SOURCES_GCH "")
if(CMAKE_COMPILER_IS_GNUCXX)
string(REPLACE " " ";" PCH_CXXFLAGS ${CXXFLAGS})
string(REPLACE " " ";" PCH_CXXFLAGS "${CXXFLAGS} ${CMAKE_CXX_FLAGS}")
file(GLOB PCH_SOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.h")
sort_list(PCH_SOURCES)
+4 -4
View File
@@ -132,8 +132,8 @@ class CoreExport NickAlias : public Base, public Extensible, public Flags<NickNa
time_t last_seen; /* When it was seen online for the last time */
NickCore *nc; /* I'm an alias of this */
Anope::string serialize_name() const;
serialized_data serialize();
Anope::string serialize_name() const anope_override;
serialized_data serialize() anope_override;
static void unserialize(serialized_data &);
/** Release a nick
@@ -216,8 +216,8 @@ class CoreExport NickCore : public Base, public Extensible, public Flags<NickCor
time_t lastmail; /* Last time this nick record got a mail */
std::list<NickAlias *> aliases; /* List of aliases */
Anope::string serialize_name() const;
serialized_data serialize();
Anope::string serialize_name() const anope_override;
serialized_data serialize() anope_override;
static void unserialize(serialized_data &);
/** Checks whether this account is a services oper or not.
+2 -2
View File
@@ -121,7 +121,7 @@ class CoreExport DNSRequest : public Timer, public Question
virtual void OnError(const DNSQuery *r);
void Tick(time_t);
void Tick(time_t) anope_override;
};
/** A full packet sent or recieved to/from the nameserver, may contain multiple queries
@@ -182,7 +182,7 @@ class CoreExport DNSManager : public Timer, public Socket
/** Tick this timer, used to clear the DNS cache.
*/
void Tick(time_t now);
void Tick(time_t now) anope_override;
/** Cleanup all pending DNS queries for a module
* @param mod The module
+2 -2
View File
@@ -38,8 +38,8 @@ class CoreExport Memo : public Flags<MemoFlag>, public Serializable
public:
Memo();
Anope::string serialize_name() const;
serialized_data serialize();
Anope::string serialize_name() const anope_override;
serialized_data serialize() anope_override;
static void unserialize(serialized_data &);
Anope::string owner;
+4 -4
View File
@@ -304,7 +304,7 @@ class CoreExport ChannelModeKey : public ChannelModeParam
public:
ChannelModeKey(char modeChar) : ChannelModeParam(CMODE_KEY, modeChar) { }
bool IsValid(const Anope::string &value) const;
bool IsValid(const Anope::string &value) const anope_override;
};
/** This class is used for channel mode +A (Admin only)
@@ -316,7 +316,7 @@ class CoreExport ChannelModeAdmin : public ChannelMode
ChannelModeAdmin(char modeChar) : ChannelMode(CMODE_ADMINONLY, modeChar) { }
/* Opers only */
bool CanSet(User *u) const;
bool CanSet(User *u) const anope_override;
};
/** This class is used for channel mode +O (Opers only)
@@ -328,7 +328,7 @@ class CoreExport ChannelModeOper : public ChannelMode
ChannelModeOper(char modeChar) : ChannelMode(CMODE_OPERONLY, modeChar) { }
/* Opers only */
bool CanSet(User *u) const;
bool CanSet(User *u) const anope_override;
};
/** This class is used for channel mode +r (registered channel)
@@ -340,7 +340,7 @@ class CoreExport ChannelModeRegistered : public ChannelMode
ChannelModeRegistered(char modeChar) : ChannelMode(CMODE_REGISTERED, modeChar) { }
/* No one mlocks +r */
bool CanSet(User *u) const;
bool CanSet(User *u) const anope_override;
};
enum StackerType
+10 -10
View File
@@ -88,8 +88,8 @@ struct CoreExport BadWord : Serializable
Anope::string word;
BadWordType type;
Anope::string serialize_name() const;
serialized_data serialize();
Anope::string serialize_name() const anope_override;
serialized_data serialize() anope_override;
static void unserialize(serialized_data &);
};
@@ -118,8 +118,8 @@ class CoreExport AutoKick : public Flags<AutoKickFlag>, public Serializable
time_t addtime;
time_t last_used;
Anope::string serialize_name() const;
serialized_data serialize();
Anope::string serialize_name() const anope_override;
serialized_data serialize() anope_override;
static void unserialize(serialized_data &);
};
@@ -135,8 +135,8 @@ struct CoreExport ModeLock : Serializable
ModeLock(ChannelInfo *ch, bool s, ChannelModeName n, const Anope::string &p, const Anope::string &se = "", time_t c = Anope::CurTime);
Anope::string serialize_name() const;
serialized_data serialize();
Anope::string serialize_name() const anope_override;
serialized_data serialize() anope_override;
static void unserialize(serialized_data &);
};
@@ -153,8 +153,8 @@ struct CoreExport LogSetting : Serializable
Anope::string creator;
time_t created;
Anope::string serialize_name() const;
serialized_data serialize();
Anope::string serialize_name() const anope_override;
serialized_data serialize() anope_override;
static void unserialize(serialized_data &);
};
@@ -212,8 +212,8 @@ class CoreExport ChannelInfo : public Extensible, public Flags<ChannelInfoFlag,
int16_t floodlines, floodsecs; /* For FLOOD kicker */
int16_t repeattimes; /* For REPEAT kicker */
Anope::string serialize_name() const;
serialized_data serialize();
Anope::string serialize_name() const anope_override;
serialized_data serialize() anope_override;
static void unserialize(serialized_data &);
/** Change the founder of the channek
+6
View File
@@ -53,6 +53,12 @@
# include "anope_windows.h"
#endif
#ifdef __GXX_EXPERIMENTAL_CXX0X__
# define anope_override override
#else
# define anope_override
#endif
/**
* RFC: defination of a valid nick
* nickname = ( letter / special ) *8( letter / digit / special / "-" )
+1 -1
View File
@@ -42,7 +42,7 @@ class Signal : public Pipe
* important. This is always called on the main thread, even on systems that
* spawn threads for signals, like Windows.
*/
virtual void OnNotify() = 0;
virtual void OnNotify() anope_override = 0;
};
#endif
+11 -11
View File
@@ -272,12 +272,12 @@ class CoreExport BufferedSocket : public virtual Socket
/** Called when there is something to be received for this socket
* @return true on success, false to drop this socket
*/
bool ProcessRead();
bool ProcessRead() anope_override;
/** Called when the socket is ready to be written to
* @return true on success, false to drop this socket
*/
bool ProcessWrite();
bool ProcessWrite() anope_override;
/** Called with a line received from the socket
* @param buf The line
@@ -327,12 +327,12 @@ class CoreExport BinarySocket : public virtual Socket
/** Called when there is something to be received for this socket
* @return true on success, false to drop this socket
*/
bool ProcessRead();
bool ProcessRead() anope_override;
/** Called when the socket is ready to be written to
* @return true on success, false to drop this socket
*/
bool ProcessWrite();
bool ProcessWrite() anope_override;
/** Write data to the socket
* @param buffer The data to write
@@ -395,12 +395,12 @@ class CoreExport ConnectionSocket : public virtual Socket
* Used to determine whether or not this socket is connected yet.
* @return true to continue to call ProcessRead/ProcessWrite, false to not continue
*/
bool Process();
bool Process() anope_override;
/** Called when there is an error for this socket
* @return true on success, false to drop this socket
*/
void ProcessError();
void ProcessError() anope_override;
/** Called on a successful connect
*/
@@ -430,12 +430,12 @@ class CoreExport ClientSocket : public virtual Socket
* Used to determine whether or not this socket is connected yet.
* @return true to continue to call ProcessRead/ProcessWrite, false to not continue
*/
bool Process();
bool Process() anope_override;
/** Called when there is an error for this socket
* @return true on success, false to drop this socket
*/
void ProcessError();
void ProcessError() anope_override;
/** Called when a client has been accepted() successfully.
*/
@@ -464,15 +464,15 @@ class CoreExport Pipe : public Socket
/** Called when data is to be read
*/
bool ProcessRead();
bool ProcessRead() anope_override;
/** Called when this pipe needs to be woken up
*/
void Notify();
/** Should be overloaded to do something useful
/** Overload to do something useful
*/
virtual void OnNotify();
virtual void OnNotify() = 0;
};
extern uint32_t TotalRead;
+4 -4
View File
@@ -22,7 +22,7 @@ class CommandBSAssign : public Command
this->SetSyntax(_("\037channel\037 \037nick\037"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
const Anope::string &chan = params[0];
const Anope::string &nick = params[1];
@@ -74,7 +74,7 @@ class CommandBSAssign : public Command
source.Reply(_("Bot \002%s\002 has been assigned to %s."), bi->nick.c_str(), ci->name.c_str());
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
@@ -94,7 +94,7 @@ class CommandBSUnassign : public Command
this->SetSyntax(_("\037channel\037"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
@@ -136,7 +136,7 @@ class CommandBSUnassign : public Command
source.Reply(_("There is no bot assigned to %s anymore."), ci->name.c_str());
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+4 -4
View File
@@ -38,7 +38,7 @@ class BadwordsDelCallback : public NumberList
source.Reply(_("Deleted %d entries from %s bad words list."), Deleted, ci->name.c_str());
}
void HandleNumber(unsigned Number)
void HandleNumber(unsigned Number) anope_override
{
if (!Number || Number > ci->GetBadWordCount())
return;
@@ -76,7 +76,7 @@ class CommandBSBadwords : public Command
{
}
void HandleNumber(unsigned Number)
void HandleNumber(unsigned Number) anope_override
{
if (!Number || Number > ci->GetBadWordCount())
return;
@@ -229,7 +229,7 @@ class CommandBSBadwords : public Command
this->SetSyntax(_("\037channel\037 CLEAR"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
const Anope::string &cmd = params[1];
const Anope::string &word = params.size() > 2 ? params[2] : "";
@@ -274,7 +274,7 @@ class CommandBSBadwords : public Command
this->OnSyntaxError(source, "");
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -300,7 +300,7 @@ class CommandBSBot : public Command
this->SetSyntax(_("\002DEL \037nick\037\002"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
const Anope::string &cmd = params[0];
User *u = source.u;
@@ -374,7 +374,7 @@ class CommandBSBot : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -22,7 +22,7 @@ class CommandBSBotList : public Command
this->SetSyntax("");
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
unsigned count = 0;
@@ -61,7 +61,7 @@ class CommandBSBotList : public Command
}
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+4 -4
View File
@@ -22,7 +22,7 @@ class CommandBSSay : public Command
this->SetSyntax(_("\037channel\037 \037text\037"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
const Anope::string &text = params[1];
@@ -68,7 +68,7 @@ class CommandBSSay : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
@@ -86,7 +86,7 @@ class CommandBSAct : public Command
this->SetSyntax(_("\037channel\037 \037text\037"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
Anope::string message = params[1];
@@ -129,7 +129,7 @@ class CommandBSAct : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -55,7 +55,7 @@ class CommandBSInfo : public Command
this->SetSyntax(_("\002INFO {\037chan\037 | \037nick\037}\002"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
const Anope::string &query = params[0];
@@ -221,7 +221,7 @@ class CommandBSInfo : public Command
source.Reply(_("\002%s\002 is not a valid bot or registered channel."), query.c_str());
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+6 -6
View File
@@ -23,7 +23,7 @@ class CommandBSKick : public Command
this->SetSyntax(_("\037channel\037 \037option\037 {\037ON|\037} [\037settings\037]"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
const Anope::string &chan = params[0];
const Anope::string &option = params[1];
@@ -459,7 +459,7 @@ class CommandBSKick : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
if (subcommand.empty())
{
@@ -626,7 +626,7 @@ struct BanData : public ExtensibleItem
}
}
void OnDelete()
void OnDelete() anope_override
{
delete this;
}
@@ -659,7 +659,7 @@ struct UserData : public ExtensibleItem
Anope::string lastline;
void OnDelete()
void OnDelete() anope_override
{
delete this;
}
@@ -671,7 +671,7 @@ class BanDataPurger : public CallBack
public:
BanDataPurger(Module *owner) : CallBack(owner, 300, Anope::CurTime, true) { }
void Tick(time_t)
void Tick(time_t) anope_override
{
Log(LOG_DEBUG) << "bs_main: Running bandata purger";
@@ -785,7 +785,7 @@ class BSKick : public Module
}
}
void OnPrivmsg(User *u, Channel *c, Anope::string &msg)
void OnPrivmsg(User *u, Channel *c, Anope::string &msg) anope_override
{
/* Now we can make kicker stuff. We try to order the checks
* from the fastest one to the slowest one, since there's
+3 -3
View File
@@ -22,7 +22,7 @@ class CommandBSSet : public Command
this->SetSyntax(_("\037(channel | bot)\037 \037option\037 \037settings\037"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
const Anope::string &chan = params[0];
const Anope::string &option = params[1];
@@ -150,7 +150,7 @@ class CommandBSSet : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
if (subcommand.empty())
{
@@ -226,7 +226,7 @@ class CommandBSSet : public Command
return true;
}
void OnSyntaxError(CommandSource &source, const Anope::string &subcommand)
void OnSyntaxError(CommandSource &source, const Anope::string &subcommand) anope_override
{
if (subcommand.empty())
Command::OnSyntaxError(source, "");
+12 -12
View File
@@ -31,7 +31,7 @@ class AccessChanAccess : public ChanAccess
{
}
bool HasPriv(const Anope::string &name) const
bool HasPriv(const Anope::string &name) const anope_override
{
return this->ci->GetLevel(name) != ACCESS_INVALID && this->level >= this->ci->GetLevel(name);
}
@@ -41,7 +41,7 @@ class AccessChanAccess : public ChanAccess
return stringify(this->level);
}
void Unserialize(const Anope::string &data)
void Unserialize(const Anope::string &data) anope_override
{
this->level = convertTo<int>(data);
}
@@ -80,7 +80,7 @@ class AccessAccessProvider : public AccessProvider
{
}
ChanAccess *Create()
ChanAccess *Create() anope_override
{
return new AccessChanAccess(this);
}
@@ -211,7 +211,7 @@ class CommandCSAccess : public Command
}
}
void HandleNumber(unsigned Number)
void HandleNumber(unsigned Number) anope_override
{
if (!Number || Number > ci->GetAccessCount())
return;
@@ -294,7 +294,7 @@ class CommandCSAccess : public Command
{
}
void HandleNumber(unsigned number)
void HandleNumber(unsigned number) anope_override
{
if (!number || number > ci->GetAccessCount())
return;
@@ -434,7 +434,7 @@ class CommandCSAccess : public Command
this->SetSyntax(_("\037channel\037 CLEAR\002"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
const Anope::string &cmd = params[1];
const Anope::string &nick = params.size() > 2 ? params[2] : "";
@@ -491,7 +491,7 @@ class CommandCSAccess : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
@@ -690,7 +690,7 @@ class CommandCSLevels : public Command
this->SetSyntax(_("\037channel\037 RESET"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
const Anope::string &cmd = params[1];
const Anope::string &what = params.size() > 2 ? params[2] : "";
@@ -726,7 +726,7 @@ class CommandCSLevels : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
if (subcommand.equals_ci("DESC"))
{
@@ -804,7 +804,7 @@ class CSAccess : public Module
}
}
void OnReload()
void OnReload() anope_override
{
defaultLevels.clear();
ConfigReader config;
@@ -829,12 +829,12 @@ class CSAccess : public Module
}
}
void OnCreateChan(ChannelInfo *ci)
void OnCreateChan(ChannelInfo *ci) anope_override
{
reset_levels(ci);
}
EventReturn OnGroupCheckPriv(const AccessGroup *group, const Anope::string &priv)
EventReturn OnGroupCheckPriv(const AccessGroup *group, const Anope::string &priv) anope_override
{
if (group->ci == NULL)
return EVENT_CONTINUE;
+4 -4
View File
@@ -202,7 +202,7 @@ class CommandCSAKick : public Command
source.Reply(_("Deleted %d entries from %s autokick list."), Deleted, ci->name.c_str());
}
void HandleNumber(unsigned Number)
void HandleNumber(unsigned Number) anope_override
{
if (!Number || Number > ci->GetAkickCount())
return;
@@ -258,7 +258,7 @@ class CommandCSAKick : public Command
{
}
void HandleNumber(unsigned number)
void HandleNumber(unsigned number) anope_override
{
if (!number || number > ci->GetAkickCount())
return;
@@ -413,7 +413,7 @@ class CommandCSAKick : public Command
this->SetSyntax(_("\037channel\037 CLEAR"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
Anope::string chan = params[0];
Anope::string cmd = params[1];
@@ -452,7 +452,7 @@ class CommandCSAKick : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -48,7 +48,7 @@ class CommandCSAppendTopic : public Command
this->SetSyntax(_("\037channel\037 \037text\037"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
const Anope::string &newtopic = params[1];
@@ -84,7 +84,7 @@ class CommandCSAppendTopic : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -23,7 +23,7 @@ class CommandCSBan : public Command
this->SetSyntax(_("\037channel\037 \037mask\037 [\037reason\037]"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
const Anope::string &chan = params[0];
const Anope::string &target = params[1];
@@ -121,7 +121,7 @@ class CommandCSBan : public Command
source.Reply(NICK_X_NOT_IN_USE, target.c_str());
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -22,7 +22,7 @@ class CommandCSClearUsers : public Command
this->SetSyntax(_("\037channel\037"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
const Anope::string &chan = params[0];
@@ -63,7 +63,7 @@ class CommandCSClearUsers : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -22,7 +22,7 @@ public:
this->SetSyntax(_("\037channel\037 \037target\037 [\037what\037]"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
const Anope::string &channel = params[0];
const Anope::string &target = params[1];
@@ -159,7 +159,7 @@ public:
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -22,7 +22,7 @@ class CommandCSDrop : public Command
this->SetSyntax(_("\037channel\037"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
const Anope::string &chan = params[0];
@@ -68,7 +68,7 @@ class CommandCSDrop : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
User *u = source.u;
this->SendSyntax(source);
+2 -2
View File
@@ -118,7 +118,7 @@ class CommandCSEnforce : public Command
this->SetSyntax(_("\037channel\037 [\037what\037]"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
const Anope::string &what = params.size() > 1 ? params[1] : "";
@@ -165,7 +165,7 @@ class CommandCSEnforce : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+6 -6
View File
@@ -29,12 +29,12 @@ struct EntryMsg : Serializable
this->when = ct;
}
Anope::string serialize_name() const
Anope::string serialize_name() const anope_override
{
return "EntryMsg";
}
serialized_data serialize()
serialized_data serialize() anope_override
{
serialized_data data;
@@ -167,7 +167,7 @@ class CommandEntryMessage : public Command
this->SetSyntax(_("\037channel\037 {ADD|DEL|LIST|CLEAR} [\037message\037|\037num\037]"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
@@ -208,7 +208,7 @@ class CommandEntryMessage : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
@@ -233,7 +233,7 @@ class CSEntryMessage : public Module
this->OnReload();
}
void OnJoinChannel(User *u, Channel *c)
void OnJoinChannel(User *u, Channel *c) anope_override
{
if (u && c && c->ci && u->server->IsSynced())
{
@@ -245,7 +245,7 @@ class CSEntryMessage : public Module
}
}
void OnReload()
void OnReload() anope_override
{
ConfigReader config;
MaxEntries = config.ReadInteger("cs_entrymsg", "maxentries", "5", 0, true);
+6 -6
View File
@@ -24,7 +24,7 @@ class FlagsChanAccess : public ChanAccess
{
}
bool HasPriv(const Anope::string &priv) const
bool HasPriv(const Anope::string &priv) const anope_override
{
std::map<Anope::string, char>::iterator it = defaultFlags.find(priv);
if (it != defaultFlags.end() && this->flags.count(it->second) > 0)
@@ -37,7 +37,7 @@ class FlagsChanAccess : public ChanAccess
return Anope::string(this->flags.begin(), this->flags.end());
}
void Unserialize(const Anope::string &data)
void Unserialize(const Anope::string &data) anope_override
{
for (unsigned i = data.length(); i > 0; --i)
this->flags.insert(data[i - 1]);
@@ -65,7 +65,7 @@ class FlagsAccessProvider : public AccessProvider
{
}
ChanAccess *Create()
ChanAccess *Create() anope_override
{
return new FlagsChanAccess(this);
}
@@ -300,7 +300,7 @@ class CommandCSFlags : public Command
this->SetSyntax(_("\037channel\037 CLEAR\002"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
const Anope::string &chan = params[0];
const Anope::string &cmd = params[1];
@@ -336,7 +336,7 @@ class CommandCSFlags : public Command
this->OnSyntaxError(source, cmd);
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
@@ -394,7 +394,7 @@ class CSFlags : public Module
this->OnReload();
}
void OnReload()
void OnReload() anope_override
{
ConfigReader config;
defaultFlags.clear();
+2 -2
View File
@@ -22,7 +22,7 @@ class CommandCSGetKey : public Command
this->SetSyntax(_("\037channel\037"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
const Anope::string &chan = params[0];
@@ -55,7 +55,7 @@ class CommandCSGetKey : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -34,7 +34,7 @@ class CommandCSInfo : public Command
this->SetSyntax(_("\037channel\037"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
const Anope::string &chan = params[0];
@@ -119,7 +119,7 @@ class CommandCSInfo : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -22,7 +22,7 @@ class CommandCSInvite : public Command
this->SetSyntax(_("\037channel\037 [\037nick\037]"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
const Anope::string &chan = params[0];
@@ -86,7 +86,7 @@ class CommandCSInvite : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -23,7 +23,7 @@ class CommandCSKick : public Command
this->SetSyntax(_("\037channel\037 \037mask\037 [\037reason\037]"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
const Anope::string &chan = params[0];
const Anope::string &target = params[1];
@@ -105,7 +105,7 @@ class CommandCSKick : public Command
source.Reply(NICK_X_NOT_IN_USE, target.c_str());
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -23,7 +23,7 @@ class CommandCSList : public Command
this->SetSyntax(_("\037pattern\037"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
@@ -117,7 +117,7 @@ class CommandCSList : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+3 -3
View File
@@ -24,7 +24,7 @@ public:
this->SetSyntax(_("\037channel\037 \037command\037 \037method\037 [\037status\037]"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
const Anope::string &channel = params[0];
@@ -151,7 +151,7 @@ public:
this->OnSyntaxError(source, "");
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
@@ -192,7 +192,7 @@ class CSLog : public Module
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
}
void OnLog(Log *l)
void OnLog(Log *l) anope_override
{
if (l->Type != LOG_COMMAND || l->u == NULL || l->c == NULL || l->ci == NULL || !Me || !Me->IsSynced())
return;
+2 -2
View File
@@ -339,7 +339,7 @@ class CommandCSMode : public Command
this->SetSyntax(_("\037channel\037 SET \037modes\037"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
const Anope::string &subcommand = params[1];
@@ -360,7 +360,7 @@ class CommandCSMode : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+20 -20
View File
@@ -90,14 +90,14 @@ class CommandCSOp : public CommandModeBase
this->SetDesc(_("Gives Op status to a selected nick on a channel"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
ChannelMode *cm = ModeManager::FindChannelModeByName(CMODE_OP);
return do_util(source, this, cm, !params.empty() ? params[0] : "", params.size() > 1 ? params[1] : "", true, "OPDEOP", "OPDEOPME");
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
@@ -119,14 +119,14 @@ class CommandCSDeOp : public CommandModeBase
this->SetDesc(_("Deops a selected nick on a channel"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
ChannelMode *cm = ModeManager::FindChannelModeByName(CMODE_OP);
return do_util(source, this, cm, !params.empty() ? params[0] : "", params.size() > 1 ? params[1] : "", false, "OPDEOP", "OPDEOPME");
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
@@ -148,14 +148,14 @@ class CommandCSVoice : public CommandModeBase
this->SetDesc(_("Voices a selected nick on a channel"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
ChannelMode *cm = ModeManager::FindChannelModeByName(CMODE_VOICE);
return do_util(source, this, cm, !params.empty() ? params[0] : "", params.size() > 1 ? params[1] : "", true, "VOICE", "VOICEME");
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
@@ -178,14 +178,14 @@ class CommandCSDeVoice : public CommandModeBase
this->SetDesc(_("Devoices a selected nick on a channel"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
ChannelMode *cm = ModeManager::FindChannelModeByName(CMODE_VOICE);
return do_util(source, this, cm, !params.empty() ? params[0] : "", params.size() > 1 ? params[1] : "", false, "VOICE", "VOICEME");
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
@@ -208,7 +208,7 @@ class CommandCSHalfOp : public CommandModeBase
this->SetDesc(_("Halfops a selected nick on a channel"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
ChannelMode *cm = ModeManager::FindChannelModeByName(CMODE_HALFOP);
@@ -218,7 +218,7 @@ class CommandCSHalfOp : public CommandModeBase
return do_util(source, this, cm, !params.empty() ? params[0] : "", params.size() > 1 ? params[1] : "", true, "HALFOP", "HALFOPME");
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
@@ -241,7 +241,7 @@ class CommandCSDeHalfOp : public CommandModeBase
this->SetDesc(_("Dehalfops a selected nick on a channel"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
ChannelMode *cm = ModeManager::FindChannelModeByName(CMODE_HALFOP);
@@ -251,7 +251,7 @@ class CommandCSDeHalfOp : public CommandModeBase
return do_util(source, this, cm, !params.empty() ? params[0] : "", params.size() > 1 ? params[1] : "", false, "HALFOP", "HALFOPME");
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
@@ -274,7 +274,7 @@ class CommandCSProtect : public CommandModeBase
this->SetDesc(_("Protects a selected nick on a channel"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
ChannelMode *cm = ModeManager::FindChannelModeByName(CMODE_PROTECT);
@@ -284,7 +284,7 @@ class CommandCSProtect : public CommandModeBase
return do_util(source, this, cm, !params.empty() ? params[0] : "", params.size() > 1 ? params[1] : "", true, "PROTECT", "PROTECTME");
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
@@ -306,7 +306,7 @@ class CommandCSDeProtect : public CommandModeBase
this->SetDesc(_("Deprotects a selected nick on a channel"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
ChannelMode *cm = ModeManager::FindChannelModeByName(CMODE_PROTECT);
@@ -316,7 +316,7 @@ class CommandCSDeProtect : public CommandModeBase
return do_util(source, this, cm, !params.empty() ? params[0] : "", params.size() > 1 ? params[1] : "", false, "PROTECT", "PROTECTME");
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
@@ -338,7 +338,7 @@ class CommandCSOwner : public CommandModeBase
this->SetDesc(_("Gives you owner status on channel"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
ChannelMode *cm = ModeManager::FindChannelModeByName(CMODE_OWNER);
@@ -348,7 +348,7 @@ class CommandCSOwner : public CommandModeBase
return do_util(source, this, cm, !params.empty() ? params[0] : "", params.size() > 1 ? params[1] : "", true, "OWNER", "OWNERME");
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
@@ -369,7 +369,7 @@ class CommandCSDeOwner : public CommandModeBase
this->SetDesc(_("Removes your owner status on a channel"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
ChannelMode *cm = ModeManager::FindChannelModeByName(CMODE_OWNER);
@@ -379,7 +379,7 @@ class CommandCSDeOwner : public CommandModeBase
return do_util(source, this, cm, !params.empty() ? params[0] : "", params.size() > 1 ? params[1] : "", false, "OWNER", "OWNERME");
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+3 -3
View File
@@ -22,7 +22,7 @@ class CommandCSRegister : public Command
this->SetSyntax(_("\037channel\037 [\037description\037]"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
const Anope::string &chan = params[0];
const Anope::string &chdesc = params.size() > 1 ? params[1] : "";
@@ -101,7 +101,7 @@ class CommandCSRegister : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
@@ -142,7 +142,7 @@ class CSRegister : public Module
ModuleManager::Attach(I_OnDelChan, this);
}
void OnDelChan(ChannelInfo *ci)
void OnDelChan(ChannelInfo *ci) anope_override
{
if (ci->c && ci->c->HasMode(CMODE_REGISTERED))
ci->c->RemoveMode(NULL, CMODE_REGISTERED, "", false);
+2 -2
View File
@@ -22,13 +22,13 @@ class CommandCSSASet : public Command
this->SetSyntax(_("\037option\037 \037channel\037 \037parameters\037"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
this->OnSyntaxError(source, "");
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -22,7 +22,7 @@ class CommandCSSASetNoexpire : public Command
this->SetSyntax(_("\037channel\037 {ON | OFF}"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
ChannelInfo *ci = cs_findchan(params[0]);
@@ -54,7 +54,7 @@ class CommandCSSASetNoexpire : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &)
bool OnHelp(CommandSource &source, const Anope::string &) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+15 -14
View File
@@ -37,12 +37,12 @@ struct SeenInfo : Serializable
{
}
Anope::string serialize_name() const
Anope::string serialize_name() const anope_override
{
return "SeenInfo";
}
serialized_data serialize()
serialized_data serialize() anope_override
{
serialized_data data;
@@ -110,7 +110,7 @@ class CommandOSSeen : public Command
this->SetSyntax(_("\037CLEAR\037 \037time\037"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
if (params[0].equals_ci("STATS"))
{
@@ -156,7 +156,7 @@ class CommandOSSeen : public Command
this->SendSyntax(source);
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
@@ -181,7 +181,7 @@ class CommandSeen : public Command
this->SetSyntax(_("\037nick\037"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
const Anope::string &target = params[0];
User *u = source.u;
@@ -276,7 +276,7 @@ class CommandSeen : public Command
}
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
@@ -292,7 +292,7 @@ class DataBasePurger : public CallBack
public:
DataBasePurger(Module *owner) : CallBack(owner, 300, Anope::CurTime, true) { }
void Tick(time_t)
void Tick(time_t) anope_override
{
size_t previous_size = database.size();
for (database_map::iterator it = database.begin(), it_end = database.end(); it != it_end;)
@@ -334,7 +334,7 @@ class CSSeen : public Module
OnReload();
}
void OnReload()
void OnReload() anope_override
{
ConfigReader config;
purgetime = dotime(config.ReadValue("cs_seen", "purgetime", "30d", 0));
@@ -344,37 +344,38 @@ class CSSeen : public Module
purger.SetSecs(expiretimeout);
}
void OnUserConnect(User *u)
void OnUserConnect(dynamic_reference<User> &u, bool &exempt) anope_override
{
UpdateUser(u, NEW, u->nick, "", "", "");
}
void OnUserNickChange(User *u, const Anope::string &oldnick)
void OnUserNickChange(User *u, const Anope::string &oldnick) anope_override
{
UpdateUser(u, NICK_TO, oldnick, u->nick, "", "");
UpdateUser(u, NICK_FROM, u->nick, oldnick, "", "");
}
void OnUserQuit(User *u, const Anope::string &msg)
void OnUserQuit(User *u, const Anope::string &msg) anope_override
{
UpdateUser(u, QUIT, u->nick, "", "", msg);
}
void OnJoinChannel(User *u, Channel *c)
void OnJoinChannel(User *u, Channel *c) anope_override
{
UpdateUser(u, JOIN, u->nick, "", c->name, "");
}
void OnPartChannel(User *u, Channel *c, const Anope::string &channel, const Anope::string &msg)
void OnPartChannel(User *u, Channel *c, const Anope::string &channel, const Anope::string &msg) anope_override
{
UpdateUser(u, PART, u->nick, "", channel, msg);
}
void OnUserKicked(Channel *c, User *target, const Anope::string &source, const Anope::string &msg)
void OnUserKicked(Channel *c, User *target, const Anope::string &source, const Anope::string &msg) anope_override
{
UpdateUser(target, KICK, target->nick, source, c->name, msg);
}
private:
void UpdateUser(const User *u, const TypeInfo Type, const Anope::string &nick, const Anope::string &nick2, const Anope::string &channel, const Anope::string &message)
{
SeenInfo *info = FindInfo(nick);
+2 -2
View File
@@ -22,13 +22,13 @@ class CommandCSSet : public Command
this->SetSyntax(_("\037option\037 \037channel\037 \037parameters\037"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
this->OnSyntaxError(source, "");
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -22,7 +22,7 @@ class CommandCSSetBanType : public Command
this->SetSyntax(_("\037channel\037 \037bantype\037"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
ChannelInfo *ci = cs_findchan(params[0]);
@@ -54,7 +54,7 @@ class CommandCSSetBanType : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &)
bool OnHelp(CommandSource &source, const Anope::string &) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -22,7 +22,7 @@ class CommandCSSetDescription : public Command
this->SetSyntax(_("\037channel\037 [\037description\037]"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
ChannelInfo *ci = cs_findchan(params[0]);
@@ -52,7 +52,7 @@ class CommandCSSetDescription : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &)
bool OnHelp(CommandSource &source, const Anope::string &) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -22,7 +22,7 @@ class CommandCSSetFounder : public Command
this->SetSyntax(_("\037channel\037 \037nick\037"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params)anope_override
{
User *u = source.u;
ChannelInfo *ci = cs_findchan(params[0]);
@@ -68,7 +68,7 @@ class CommandCSSetFounder : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &)
bool OnHelp(CommandSource &source, const Anope::string &) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -22,7 +22,7 @@ class CommandCSSetKeepTopic : public Command
this->SetSyntax(_("\037channel\037 {ON | OFF}"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
ChannelInfo *ci = cs_findchan(params[0]);
@@ -54,7 +54,7 @@ class CommandCSSetKeepTopic : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &)
bool OnHelp(CommandSource &source, const Anope::string &) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+4 -4
View File
@@ -22,12 +22,12 @@ struct CSMiscData : Anope::string, ExtensibleItem, Serializable
{
}
Anope::string serialize_name() const
Anope::string serialize_name() const anope_override
{
return "CSMiscData";
}
serialized_data serialize()
serialized_data serialize() anope_override
{
serialized_data sdata;
@@ -64,7 +64,7 @@ class CommandCSSetMisc : public Command
this->SetSyntax(_("\037channel\037 [\037parameters\037]"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
ChannelInfo *ci = cs_findchan(params[0]);
if (ci == NULL)
@@ -115,7 +115,7 @@ class CSSetMisc : public Module
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
}
void OnChanInfo(CommandSource &source, ChannelInfo *ci, InfoFormatter &info, bool ShowHidden)
void OnChanInfo(CommandSource &source, ChannelInfo *ci, InfoFormatter &info, bool ShowHidden) anope_override
{
std::deque<Anope::string> list;
ci->GetExtList(list);
+2 -2
View File
@@ -22,7 +22,7 @@ class CommandCSSetPeace : public Command
this->SetSyntax(_("\037channel\037 {ON | OFF}"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
ChannelInfo *ci = cs_findchan(params[0]);
@@ -54,7 +54,7 @@ class CommandCSSetPeace : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &)
bool OnHelp(CommandSource &source, const Anope::string &) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -22,7 +22,7 @@ class CommandCSSetPersist : public Command
this->SetSyntax(_("\037channel\037 {ON | OFF}"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
ChannelInfo *ci = cs_findchan(params[0]);
@@ -126,7 +126,7 @@ class CommandCSSetPersist : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &)
bool OnHelp(CommandSource &source, const Anope::string &) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -22,7 +22,7 @@ class CommandCSSetPrivate : public Command
this->SetSyntax(_("\037channel\037 {ON | OFF}"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
ChannelInfo *ci = cs_findchan(params[0]);
@@ -54,7 +54,7 @@ class CommandCSSetPrivate : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &)
bool OnHelp(CommandSource &source, const Anope::string &) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -21,7 +21,7 @@ class CommandCSSetRestricted : public Command
this->SetSyntax(_("\037channel\037 {ON | OFF}"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
ChannelInfo *ci = cs_findchan(params[0]);
@@ -53,7 +53,7 @@ class CommandCSSetRestricted : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &)
bool OnHelp(CommandSource &source, const Anope::string &) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -22,7 +22,7 @@ class CommandCSSetSecure : public Command
this->SetSyntax(_("\037channel\037 {ON | OFF}"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
ChannelInfo *ci = cs_findchan(params[0]);
@@ -54,7 +54,7 @@ class CommandCSSetSecure : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &)
bool OnHelp(CommandSource &source, const Anope::string &) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -22,7 +22,7 @@ class CommandCSSetSecureFounder : public Command
this->SetSyntax(_("\037channel\037 {ON | OFF}"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
ChannelInfo *ci = cs_findchan(params[0]);
@@ -55,7 +55,7 @@ class CommandCSSetSecureFounder : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &)
bool OnHelp(CommandSource &source, const Anope::string &) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -22,7 +22,7 @@ class CommandCSSetSecureOps : public Command
this->SetSyntax(_("\037channel\037 {ON | OFF}"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
ChannelInfo *ci = cs_findchan(params[0]);
@@ -54,7 +54,7 @@ class CommandCSSetSecureOps : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &)
bool OnHelp(CommandSource &source, const Anope::string &) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -22,7 +22,7 @@ class CommandCSSetSignKick : public Command
this->SetSyntax(_("\037channel\037 SIGNKICK {ON | LEVEL | OFF}"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
ChannelInfo *ci = cs_findchan(params[0]);
@@ -61,7 +61,7 @@ class CommandCSSetSignKick : public Command
this->OnSyntaxError(source, "SIGNKICK");
}
bool OnHelp(CommandSource &source, const Anope::string &)
bool OnHelp(CommandSource &source, const Anope::string &) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -22,7 +22,7 @@ class CommandCSSetSuccessor : public Command
this->SetSyntax(_("\037channel\037 \037nick\037"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
ChannelInfo *ci = cs_findchan(params[0]);
@@ -77,7 +77,7 @@ class CommandCSSetSuccessor : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &)
bool OnHelp(CommandSource &source, const Anope::string &) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -22,7 +22,7 @@ class CommandCSSetTopicLock : public Command
this->SetSyntax(_("\037channel\037 {ON | OFF}"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
ChannelInfo *ci = cs_findchan(params[0]);
@@ -54,7 +54,7 @@ class CommandCSSetTopicLock : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &)
bool OnHelp(CommandSource &source, const Anope::string &) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+6 -6
View File
@@ -27,7 +27,7 @@ struct ChanSuspend : ExtensibleItem, Serializable
return "ChanSuspend";
}
serialized_data serialize()
serialized_data serialize() anope_override
{
serialized_data sd;
@@ -61,7 +61,7 @@ class CommandCSSuspend : public Command
this->SetSyntax(_("\037channel\037 [+\037expiry\037] [\037reason\037]"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
const Anope::string &chan = params[0];
Anope::string expiry = params.size() > 1 ? params[1] : "";
@@ -130,7 +130,7 @@ class CommandCSSuspend : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
@@ -155,7 +155,7 @@ class CommandCSUnSuspend : public Command
this->SetSyntax(_("\037channel\037"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
@@ -192,7 +192,7 @@ class CommandCSUnSuspend : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
@@ -228,7 +228,7 @@ class CSSuspend : public Module
}
}
void OnPreChanExpire(ChannelInfo *ci, bool &expire)
void OnPreChanExpire(ChannelInfo *ci, bool &expire) anope_override
{
if (!ci->HasFlag(CI_SUSPENDED))
return;
+2 -2
View File
@@ -20,7 +20,7 @@ class CommandCSSync : public Command
this->SetSyntax(_("\037channel\037"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
ChannelInfo *ci = cs_findchan(params[0]);
@@ -40,7 +40,7 @@ class CommandCSSync : public Command
}
}
bool OnHelp(CommandSource &source, const Anope::string &params)
bool OnHelp(CommandSource &source, const Anope::string &params) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+3 -3
View File
@@ -28,7 +28,7 @@ class TempBan : public CallBack
public:
TempBan(time_t seconds, Channel *c, const Anope::string &banmask) : CallBack(me, seconds), chan(c), mask(banmask) { }
void Tick(time_t ctime)
void Tick(time_t ctime) anope_override
{
if (chan && chan->ci)
chan->RemoveMode(NULL, CMODE_BAN, mask);
@@ -44,7 +44,7 @@ class CommandCSTBan : public Command
this->SetSyntax(_("\037channel\037 \037nick\037 \037time\037"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
Channel *c = findchan(params[0]);
@@ -78,7 +78,7 @@ class CommandCSTBan : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->OnSyntaxError(source, "");
source.Reply(" ");
+2 -2
View File
@@ -22,7 +22,7 @@ class CommandCSTopic : public Command
this->SetSyntax(_("\037channel\037 [\037topic\037]"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
const Anope::string &topic = params.size() > 1 ? params[1] : "";
@@ -53,7 +53,7 @@ class CommandCSTopic : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -22,7 +22,7 @@ class CommandCSUnban : public Command
this->SetSyntax(_("\037channel\037 [\037nick\037]"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
@@ -64,7 +64,7 @@ class CommandCSUnban : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+4 -4
View File
@@ -22,7 +22,7 @@ class CommandCSUp : public Command
this->SetSyntax(_("[\037channel\037]"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
@@ -47,7 +47,7 @@ class CommandCSUp : public Command
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
@@ -77,7 +77,7 @@ class CommandCSDown : public Command
this->SetSyntax(_("[\037channel\037]"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
@@ -101,7 +101,7 @@ class CommandCSDown : public Command
}
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+18 -24
View File
@@ -99,7 +99,7 @@ class XOPChanAccess : public ChanAccess
{
}
bool HasPriv(const Anope::string &priv) const
bool HasPriv(const Anope::string &priv) const anope_override
{
for (int i = 0; xopAccess[i].type != XOP_UNKNOWN; ++i)
{
@@ -129,7 +129,7 @@ class XOPChanAccess : public ChanAccess
return "";
}
void Unserialize(const Anope::string &data)
void Unserialize(const Anope::string &data) anope_override
{
for (int i = 0; xopAccess[i].type != XOP_UNKNOWN; ++i)
{
@@ -188,7 +188,7 @@ class XOPAccessProvider : public AccessProvider
{
}
ChanAccess *Create()
ChanAccess *Create() anope_override
{
return new XOPChanAccess(this);
}
@@ -340,7 +340,7 @@ class XOPBase : public Command
}
}
void HandleNumber(unsigned Number)
void HandleNumber(unsigned Number) anope_override
{
if (!Number || Number > ci->GetAccessCount())
return;
@@ -394,17 +394,11 @@ class XOPBase : public Command
const Anope::string &nick = params.size() > 2 ? params[2] : "";
AccessGroup access = ci->AccessFor(u);
bool override = false;
if (!access.HasPriv("ACCESS_LIST"))
if (!access.HasPriv("ACCESS_LIST") && !u->HasCommand("chanserv/access/list"))
{
if (u->HasCommand("chanserv/access/list"))
override = true;
else
{
source.Reply(ACCESS_DENIED);
return;
}
source.Reply(ACCESS_DENIED);
return;
}
if (!ci->GetAccessCount())
@@ -428,7 +422,7 @@ class XOPBase : public Command
{
}
void HandleNumber(unsigned Number)
void HandleNumber(unsigned Number) anope_override
{
if (!Number || Number > ci->GetAccessCount())
return;
@@ -567,12 +561,12 @@ class CommandCSQOP : public XOPBase
this->SetDesc(_("Modify the list of QOP users"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
return this->DoXop(source, params, XOP_QOP);
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
@@ -621,12 +615,12 @@ class CommandCSAOP : public XOPBase
this->SetDesc(_("Modify the list of AOP users"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
return this->DoXop(source, params, XOP_AOP);
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
@@ -677,12 +671,12 @@ class CommandCSHOP : public XOPBase
this->SetDesc(_("Maintains the HOP (HalfOP) list for a channel"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
return this->DoXop(source, params, XOP_HOP);
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
@@ -731,12 +725,12 @@ class CommandCSSOP : public XOPBase
this->SetDesc(_("Modify the list of SOP users"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
return this->DoXop(source, params, XOP_SOP);
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
@@ -786,12 +780,12 @@ class CommandCSVOP : public XOPBase
this->SetDesc(_("Maintains the VOP (VOicePeople) list for a channel"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
return this->DoXop(source, params, XOP_VOP);
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -23,7 +23,7 @@ class CommandGLGlobal : public Command
this->SetSyntax(_("\037message\037"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
const Anope::string &msg = params[0];
@@ -37,7 +37,7 @@ class CommandGLGlobal : public Command
}
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+1 -1
View File
@@ -23,7 +23,7 @@ class CommandHelp : public Command
this->SetFlag(CFLAG_ALLOW_UNREGISTERED);
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
EventReturn MOD_RESULT;
FOREACH_RESULT(I_OnPreHelp, OnPreHelp(source, params));
+4 -4
View File
@@ -22,7 +22,7 @@ class CommandHSDel : public Command
this->SetSyntax(_("\037nick\037"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
const Anope::string &nick = params[0];
@@ -38,7 +38,7 @@ class CommandHSDel : public Command
source.Reply(NICK_X_NOT_REGISTERED, nick.c_str());
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
@@ -57,7 +57,7 @@ class CommandHSDelAll : public Command
this->SetSyntax(_("\037nick\037"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
const Anope::string &nick = params[0];
User *u = source.u;
@@ -78,7 +78,7 @@ class CommandHSDelAll : public Command
source.Reply(NICK_X_NOT_REGISTERED, nick.c_str());
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -34,7 +34,7 @@ class CommandHSGroup : public Command
this->SetSyntax("");
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
NickAlias *na = findnick(u->nick);
@@ -52,7 +52,7 @@ class CommandHSGroup : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -22,7 +22,7 @@ class CommandHSList : public Command
this->SetSyntax(_("\002[<key>|<#X-Y>]"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
const Anope::string &key = !params.empty() ? params[0] : "";
int from = 0, to = 0, counter = 1;
@@ -131,7 +131,7 @@ class CommandHSList : public Command
source.Reply(replies[i]);
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -22,7 +22,7 @@ class CommandHSOff : public Command
this->SetSyntax("");
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
NickAlias *na = findnick(u->nick);
@@ -39,7 +39,7 @@ class CommandHSOff : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -22,7 +22,7 @@ class CommandHSOn : public Command
this->SetSyntax("");
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
NickAlias *na = findnick(u->nick);
@@ -49,7 +49,7 @@ class CommandHSOn : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+11 -11
View File
@@ -30,12 +30,12 @@ struct HostRequest : ExtensibleItem, Serializable
Anope::string host;
time_t time;
Anope::string serialize_name() const
Anope::string serialize_name() const anope_override
{
return "HostRequest";
}
serialized_data serialize()
serialized_data serialize() anope_override
{
serialized_data data;
@@ -79,7 +79,7 @@ class CommandHSRequest : public Command
this->SetSyntax(_("vhost"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
@@ -162,7 +162,7 @@ class CommandHSRequest : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
@@ -182,7 +182,7 @@ class CommandHSActivate : public Command
this->SetSyntax(_("\037nick\037"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
@@ -206,7 +206,7 @@ class CommandHSActivate : public Command
source.Reply(_("No request for nick %s found."), nick.c_str());
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
@@ -226,7 +226,7 @@ class CommandHSReject : public Command
this->SetDesc(_("Reject the requested vHost of a user"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
@@ -259,7 +259,7 @@ class CommandHSReject : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
@@ -321,12 +321,12 @@ class CommandHSWaiting : public Command
this->SetSyntax("");
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
return this->DoList(source);
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
@@ -362,7 +362,7 @@ class HSRequest : public Module
it->second->Shrink("hs_request");
}
void OnReload()
void OnReload() anope_override
{
ConfigReader config;
HSRequestMemoUser = config.ReadFlag("hs_request", "memouser", "no", 0);
+4 -4
View File
@@ -22,7 +22,7 @@ class CommandHSSet : public Command
this->SetSyntax(_("\037nick\037 \037hostmask\037"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
@@ -90,7 +90,7 @@ class CommandHSSet : public Command
source.Reply(_("VHost for \002%s\002 set to \002%s\002."), nick.c_str(), host.c_str());
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
@@ -123,7 +123,7 @@ class CommandHSSetAll : public Command
this->SetSyntax(_("\037nick\037 \037hostmask>\037"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
@@ -192,7 +192,7 @@ class CommandHSSetAll : public Command
source.Reply(_("VHost for group \002%s\002 set to \002%s\002."), nick.c_str(), host.c_str());
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -23,7 +23,7 @@ class CommandMSCancel : public Command
this->SetSyntax(_("{\037nick\037 | \037channel\037}"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
if (!memoserv)
return;
@@ -53,7 +53,7 @@ class CommandMSCancel : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -22,7 +22,7 @@ class CommandMSCheck : public Command
this->SetSyntax(_("\037nick\037"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
@@ -62,7 +62,7 @@ class CommandMSCheck : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+3 -3
View File
@@ -23,7 +23,7 @@ class MemoDelCallback : public NumberList
{
}
void HandleNumber(unsigned Number)
void HandleNumber(unsigned Number) anope_override
{
if (!Number || Number > mi->memos.size())
return;
@@ -47,7 +47,7 @@ class CommandMSDel : public Command
this->SetSyntax(_("[\037channel\037] {\037num\037 | \037list\037 | LAST | ALL}"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
@@ -124,7 +124,7 @@ class CommandMSDel : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -24,7 +24,7 @@ class CommandMSIgnore : public Command
this->SetSyntax(_("[\037channel\037] {\002ADD|DEL|LIST\002} [\037entry\037]"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
if (!memoserv)
return;
@@ -101,7 +101,7 @@ class CommandMSIgnore : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -22,7 +22,7 @@ class CommandMSInfo : public Command
this->SetSyntax(_("[\037nick\037 | \037channel\037]"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
@@ -183,7 +183,7 @@ class CommandMSInfo : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+3 -3
View File
@@ -22,7 +22,7 @@ class CommandMSList : public Command
this->SetSyntax(_("[\037channel\037] [\037list\037 | NEW]"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
@@ -77,7 +77,7 @@ class CommandMSList : public Command
{
}
void HandleNumber(unsigned Number)
void HandleNumber(unsigned Number) anope_override
{
if (!Number || Number > mi->memos.size())
return;
@@ -137,7 +137,7 @@ class CommandMSList : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+3 -3
View File
@@ -58,7 +58,7 @@ class MemoListCallback : public NumberList
{
}
void HandleNumber(unsigned Number)
void HandleNumber(unsigned Number) anope_override
{
if (!Number || Number > mi->memos.size())
return;
@@ -91,7 +91,7 @@ class CommandMSRead : public Command
this->SetSyntax(_("[\037channel\037] {\037num\037 | \037list\037 | LAST | NEW}"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
@@ -163,7 +163,7 @@ class CommandMSRead : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -23,7 +23,7 @@ class CommandMSRSend : public Command
this->SetSyntax(_("{\037nick\037 | \037channel\037} \037memo-text\037"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
if (!memoserv)
return;
@@ -74,7 +74,7 @@ class CommandMSRSend : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -23,7 +23,7 @@ class CommandMSSend : public Command
this->SetSyntax(_("{\037nick\037 | \037channel\037} \037memo-text\037"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
if (!memoserv)
return;
@@ -44,7 +44,7 @@ class CommandMSSend : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -23,7 +23,7 @@ class CommandMSSendAll : public Command
this->SetSyntax(_("\037memo-text\037"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
if (!memoserv)
return;
@@ -51,7 +51,7 @@ class CommandMSSendAll : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -205,7 +205,7 @@ class CommandMSSet : public Command
this->SetSyntax(_("\037option\037 \037parameters\037"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
const Anope::string &cmd = params[0];
@@ -225,7 +225,7 @@ class CommandMSSet : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
if (subcommand.empty())
{
+2 -2
View File
@@ -23,7 +23,7 @@ class CommandMSStaff : public Command
this->SetSyntax(_("\037memo-text\037"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
if (!memoserv)
return;
@@ -47,7 +47,7 @@ class CommandMSStaff : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -93,7 +93,7 @@ class CommandNSAccess : public Command
this->SetSyntax(_("LIST [\037user\037]"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
const Anope::string &cmd = params[0];
@@ -151,7 +151,7 @@ class CommandNSAccess : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+5 -5
View File
@@ -19,12 +19,12 @@ struct AJoinList : std::vector<std::pair<Anope::string, Anope::string> >, Extens
AJoinList(NickCore *n) : nc(n) { }
Anope::string serialize_name() const
Anope::string serialize_name() const anope_override
{
return "AJoinList";
}
serialized_data serialize()
serialized_data serialize() anope_override
{
serialized_data sd;
@@ -150,7 +150,7 @@ class CommandNSAJoin : public Command
this->SetSyntax(_("{ADD | DEL | LIST} [\037channel\037] [\037key\037]"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
if (params[0].equals_ci("LIST"))
this->DoList(source, params);
@@ -166,7 +166,7 @@ class CommandNSAJoin : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
@@ -191,7 +191,7 @@ class NSAJoin : public Module
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
}
void OnNickIdentify(User *u)
void OnNickIdentify(User *u) anope_override
{
AJoinList *channels = u->Account()->GetExt<AJoinList *>("ns_ajoin_channels");
+2 -2
View File
@@ -22,7 +22,7 @@ class CommandNSAList : public Command
this->SetSyntax(_("[\037nickname\037]"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
Anope::string nick = u->Account()->display;
@@ -80,7 +80,7 @@ class CommandNSAList : public Command
source.Reply(replies[i]);
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+3 -3
View File
@@ -148,7 +148,7 @@ class CommandNSCert : public Command
this->SetSyntax("LIST");
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
const Anope::string &cmd = params[0];
@@ -172,7 +172,7 @@ class CommandNSCert : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
@@ -234,7 +234,7 @@ class NSCert : public Module
}
void OnFingerprint(User *u)
void OnFingerprint(User *u) anope_override
{
DoAutoIdentify(u);
}
+2 -2
View File
@@ -22,7 +22,7 @@ class CommandNSDrop : public Command
this->SetDesc(_("Cancel the registration of a nickname"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
Anope::string nick = !params.empty() ? params[0] : "";
@@ -81,7 +81,7 @@ class CommandNSDrop : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
User *u = source.u;
if (u->Account() && u->HasPriv("nickserv/drop"))
+2 -2
View File
@@ -26,7 +26,7 @@ class CommandNSGetEMail : public Command
this->SetSyntax(_("\037user@email-host\037"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
const Anope::string &email = params[0];
@@ -54,7 +54,7 @@ class CommandNSGetEMail : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -22,7 +22,7 @@ class CommandNSGetPass : public Command
this->SetSyntax(_("\037nickname\037"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
const Anope::string &nick = params[0];
@@ -46,7 +46,7 @@ class CommandNSGetPass : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -23,7 +23,7 @@ class CommandNSGhost : public Command
this->SetSyntax("\037nickname\037 [\037password\037]");
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
const Anope::string &nick = params[0];
const Anope::string &pass = params.size() > 1 ? params[1] : "";
@@ -87,7 +87,7 @@ class CommandNSGhost : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+6 -6
View File
@@ -23,7 +23,7 @@ class CommandNSGroup : public Command
this->SetSyntax(_("\037target\037 \037password\037"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
@@ -129,7 +129,7 @@ class CommandNSGroup : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
@@ -172,7 +172,7 @@ class CommandNSUngroup : public Command
this->SetSyntax(_("[\037nick\037]"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
Anope::string nick = !params.empty() ? params[0] : "";
@@ -216,7 +216,7 @@ class CommandNSUngroup : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
@@ -237,7 +237,7 @@ class CommandNSGList : public Command
this->SetDesc(_("Lists all nicknames in your group"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
Anope::string nick = !params.empty() ? params[0] : "";
@@ -273,7 +273,7 @@ class CommandNSGList : public Command
}
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
User *u = source.u;
if (u->IsServicesOper())
+2 -2
View File
@@ -23,7 +23,7 @@ class CommandNSIdentify : public Command
this->SetSyntax(_("[\037account\037] \037password\037"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
@@ -63,7 +63,7 @@ class CommandNSIdentify : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -34,7 +34,7 @@ class CommandNSInfo : public Command
this->SetSyntax(_("[\037nickname\037]"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
@@ -145,7 +145,7 @@ class CommandNSInfo : public Command
}
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -22,7 +22,7 @@ class CommandNSList : public Command
this->SetSyntax(_("\037pattern\037 [SUSPENDED] [NOEXPIRE] [UNCONFIRMED]"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
@@ -129,7 +129,7 @@ class CommandNSList : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -23,7 +23,7 @@ class CommandNSLogout : public Command
this->SetSyntax(_("[\037nickname\037 [REVALIDATE]]"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
@@ -61,7 +61,7 @@ class CommandNSLogout : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
+2 -2
View File
@@ -42,7 +42,7 @@ class CommandNSRecover : public Command
this->SetSyntax(_("\037nickname\037 [\037password\037]"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
@@ -92,7 +92,7 @@ class CommandNSRecover : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
/* Convert Config->NSReleaseTimeout seconds to string format */
Anope::string relstr = duration(Config->NSReleaseTimeout);
+8 -8
View File
@@ -25,7 +25,7 @@ class CommandNSConfirm : public Command
this->SetSyntax(_("\037passcode\037"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
const Anope::string &passcode = params[0];
@@ -68,7 +68,7 @@ class CommandNSConfirm : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
User *u = source.u;
this->SendSyntax(source);
@@ -87,7 +87,7 @@ class CommandNSConfirm : public Command
return true;
}
void OnSyntaxError(CommandSource &source, const Anope::string &subcommand)
void OnSyntaxError(CommandSource &source, const Anope::string &subcommand) anope_override
{
source.Reply(NICK_CONFIRM_INVALID);
}
@@ -106,7 +106,7 @@ class CommandNSRegister : public Command
this->SetSyntax(_("\037password\037 \037[email]\037"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
NickAlias *na;
@@ -212,7 +212,7 @@ class CommandNSRegister : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply("\n");
@@ -259,7 +259,7 @@ class CommandNSResend : public Command
this->SetSyntax("");
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
if (!Config->NSEmailReg)
return;
@@ -288,7 +288,7 @@ class CommandNSResend : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
if (!Config->NSEmailReg)
return false;
@@ -300,7 +300,7 @@ class CommandNSResend : public Command
return true;
}
void OnServHelp(CommandSource &source)
void OnServHelp(CommandSource &source) anope_override
{
if (Config->NSEmailReg)
Command::OnServHelp(source);
+2 -2
View File
@@ -23,7 +23,7 @@ class CommandNSRelease : public Command
this->SetSyntax(_("\037nickname\037 [\037password\037]"));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
const Anope::string &nick = params[0];
@@ -70,7 +70,7 @@ class CommandNSRelease : public Command
return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
/* Convert Config->NSReleaseTimeout seconds to string format */
Anope::string relstr = duration(Config->NSReleaseTimeout);

Some files were not shown because too many files have changed in this diff Show More