X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_blockamsg.cpp;h=1b5fee40bfac3b1f8c6ee81fdc66585eedba65db;hb=bcac49dca78631687975771c6d0a76b595171664;hp=7dc2f2f2fa7fba1014a91810ebf661fc1d548b1b;hpb=6050df73f498d05597fb37c6157868df1f6f4db2;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_blockamsg.cpp b/src/modules/m_blockamsg.cpp index 7dc2f2f2f..1b5fee40b 100644 --- a/src/modules/m_blockamsg.cpp +++ b/src/modules/m_blockamsg.cpp @@ -31,14 +31,16 @@ enum BlockAction { IBLOCK_KILL, IBLOCK_KILLOPERS, IBLOCK_NOTICE, IBLOCK_NOTICEOPERS, IBLOCK_SILENT }; +/** Holds a blocked message's details + */ class BlockedMessage : public classbase { public: std::string message; irc::string target; time_t sent; - - BlockedMessage(std::string msg, irc::string tgt, time_t when) : message(msg), target(tgt), sent(when) + + BlockedMessage(const std::string &msg, const irc::string &tgt, time_t when) : message(msg), target(tgt), sent(when) { } }; @@ -66,7 +68,7 @@ public: virtual Version GetVersion() { - return Version(1,0,0,0,VF_VENDOR); + return Version(1,1,0,0,VF_VENDOR,API_VERSION); } virtual void OnRehash(const std::string ¶meter) @@ -93,7 +95,7 @@ public: DELETE(Conf); } - virtual int OnPreCommand(const std::string &command, const char** parameters, int pcnt, userrec *user, bool validated) + virtual int OnPreCommand(const std::string &command, const char** parameters, int pcnt, userrec *user, bool validated, const std::string &original_line) { // Don't do anything with unregistered users, or remote ones. if(!user || (user->registered != REG_ALL) || !IS_LOCAL(user))