anope

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

cs_entrymsg.h (617B)

      1 /*
      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 
      9 struct EntryMsg
     10 {
     11 	Anope::string chan;
     12 	Anope::string creator;
     13 	Anope::string message;
     14 	time_t when;
     15 
     16 	virtual ~EntryMsg() { }
     17  protected:
     18 	EntryMsg() { }
     19 };
     20 
     21 struct EntryMessageList : Serialize::Checker<std::vector<EntryMsg *> >
     22 {
     23  protected:
     24 	EntryMessageList() : Serialize::Checker<std::vector<EntryMsg *> >("EntryMsg") { }
     25 
     26  public:
     27 	virtual ~EntryMessageList()
     28 	{
     29 		for (unsigned i = (*this)->size(); i > 0; --i)
     30 			delete (*this)->at(i - 1);
     31 	}
     32 
     33 	virtual EntryMsg* Create() = 0;
     34 };