anope

- supernets anope source code & configuration
git clone git://git.acid.vegas/anope.git
Log | Files | Refs | Archive | README

cs_log.h (967B)

      1 /* ChanServ core functions
      2  *
      3  * (C) 2003-2022 Anope Team
      4  * Contact us at team@anope.org
      5  *
      6  * Please read COPYING and README for further details.
      7  *
      8  * Based on the original code of Epona by Lara.
      9  * Based on the original code of Services by Andy Church.
     10  */
     11 
     12 struct LogSetting
     13 {
     14 	Anope::string chan;
     15 	/* Our service name of the command */
     16 	Anope::string service_name;
     17 	/* The name of the client the command is on */
     18 	Anope::string command_service;
     19 	/* Name of the command to the user, can have spaces */
     20 	Anope::string command_name;
     21 	Anope::string method, extra;
     22 	Anope::string creator;
     23 	time_t created;
     24 
     25 	virtual ~LogSetting() { }
     26  protected:
     27 	LogSetting() { }
     28 };
     29 
     30 struct LogSettings : Serialize::Checker<std::vector<LogSetting *> >
     31 {
     32 	typedef std::vector<LogSetting *>::iterator iterator;
     33 
     34  protected:
     35 	LogSettings() : Serialize::Checker<std::vector<LogSetting *> >("LogSetting")
     36 	{
     37 	}
     38 
     39  public:
     40 	virtual ~LogSettings() { }
     41 	virtual LogSetting *Create() = 0;
     42 };