From 37394a80c2b4a3948e4f0e850710c9518d9ba259 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Mon, 12 Aug 2013 20:10:06 +0200 Subject: Clean up a few constructors Do not silently correct a zero TS in Channel::Channel(); require callers to supply a valid TS instead --- src/channels.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/channels.cpp') diff --git a/src/channels.cpp b/src/channels.cpp index c7913606f..cab4fb739 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -40,15 +40,10 @@ namespace } Channel::Channel(const std::string &cname, time_t ts) + : name(cname), age(ts), topicset(0) { if (!ServerInstance->chanlist->insert(std::make_pair(cname, this)).second) throw CoreException("Cannot create duplicate channel " + cname); - - this->name = cname; - this->age = ts ? ts : ServerInstance->Time(); - - topicset = 0; - modes.reset(); } void Channel::SetMode(ModeHandler* mh, bool on) -- cgit v1.3.1-10-gc9f91