]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/channels.h
Move channel creation to a seperate Channel::CreateChannel (y'know, perhaps this...
[user/henk/code/inspircd.git] / include / channels.h
index b9983ed88f13a43e662b81252a72df49145b123b..3c95bb7fbb961dfd37d5ecd5e19477cd175dc02d 100644 (file)
@@ -374,6 +374,14 @@ class CoreExport Channel : public Extensible
         */
        static Channel* JoinUser(InspIRCd* ServerInstance, User *user, const char* cn, bool override, const char* key, bool bursting, time_t TS = 0);
 
+       /*
+        * Create a channel record, and insert it into the hash.
+        * @param name The channel name
+        * @param ts The channel timestamp
+        * @return A pointer to the newly created Channel object.
+        */
+       static Channel *CreateChannel(InspIRCd *ServerInstance, const std::string &name, time_t ts = 0);
+
        /** Write to a channel, from a user, using va_args for text
         * @param user User whos details to prefix the line with
         * @param text A printf-style format string which builds the output line without prefix