diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-01-06 02:24:26 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-01-06 02:24:26 +0000 |
commit | d2fea45d5ad318c9cc9959843614273cf827b13f (patch) | |
tree | 3180ab6e003f0a152ee0d18bd1603177d1c23b87 /include | |
parent | c244f3ecd52a850a7ced20be3ea29da79b7b62d2 (diff) |
Move channel creation to a seperate Channel::CreateChannel (y'know, perhaps this might go into a constructor sometime) in preperation for permanent channels
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8646 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r-- | include/channels.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/channels.h b/include/channels.h index b9983ed88..3c95bb7fb 100644 --- a/include/channels.h +++ b/include/channels.h @@ -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 |