+ chan_hash::iterator findchan = ServerInstance->chanlist->find(name);
+ if (findchan != Instance->chanlist->end())
+ throw CoreException("Cannot create duplicate channel " + cname);
+
+ (*(ServerInstance->chanlist))[cname.c_str()] = this;
+ strlcpy(this->name, cname.c_str(), CHANMAX);
+ this->created = ts ? ts : ServerInstance->Time();
+ this->age = this->created;
+
+
+
+
+ *topic = *setby = *key = 0;
+ maxbans = topicset = limit = 0;