From 2708eea5d13c249143b83fbaa8b552992f0ac8b6 Mon Sep 17 00:00:00 2001 From: Adam- Date: Mon, 4 Jan 2010 05:45:58 +0000 Subject: Removed NICKMAX and CHANMAX, replaced user->nick, c->name, and ci->name with std::string git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2732 5417fbe8-f217-4b02-8779-1006273d7864 --- include/services.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'include/services.h') diff --git a/include/services.h b/include/services.h index 9393c9091..0465fa631 100644 --- a/include/services.h +++ b/include/services.h @@ -495,7 +495,7 @@ class Memo : public Flags public: uint32 number; /* Index number -- not necessarily array position! */ time_t time; /* When it was sent */ - char sender[NICKMAX]; + std::string sender; char *text; }; @@ -854,11 +854,11 @@ class CoreExport Channel : public Extensible, public Flags ~Channel(); Channel *next, *prev; - char name[CHANMAX]; + std::string name; /* Channel name */ ChannelInfo *ci; /* Corresponding ChannelInfo */ time_t creation_time; /* When channel was created */ char *topic; - char topic_setter[NICKMAX]; /* Who set the topic */ + std::string topic_setter; time_t topic_time; /* When topic was set */ std::bitset<128> modes; @@ -1055,7 +1055,7 @@ struct NewsItem NewsType type; uint32 num; std::string Text; - char who[NICKMAX]; + std::string who; time_t time; }; @@ -1101,7 +1101,7 @@ struct sxline_ { struct exception_ { char *mask; /* Hosts to which this exception applies */ int limit; /* Session limit for exception */ - char who[NICKMAX]; /* Nick of person who added the exception */ + std::string who; /* Nick of person who added the exception */ char *reason; /* Reason for exception's addition */ time_t time; /* When this exception was added */ time_t expires; /* Time when it expires. 0 == no expiry */ -- cgit