]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/channels.h
Send a snotice when m_filter kills or G-Lines a client.
[user/henk/code/inspircd.git] / include / channels.h
index 0cf477f2207e496d1052ceb11b0af9b7e17214db..365cdeabd1a2c1f09a7dd646ce82fb0a11ab0dbf 100644 (file)
@@ -138,15 +138,18 @@ class CoreExport Channel : public Extensible
        /** Sets the channel topic.
         * @param user The user setting the topic.
         * @param topic The topic to set it to.
+        * @param topicts Timestamp of the new topic.
+        * @param setter Setter string, may be used when the original setter is no longer online.
+        * If omitted or NULL, the setter string is obtained from the user.
         */
-       void SetTopic(User* user, const std::string& topic);
+       void SetTopic(User* user, const std::string& topic, time_t topicts, const std::string* setter = NULL);
 
        /** Obtain the channel "user counter"
         * This returns the number of users on this channel
         *
         * @return The number of users on this channel
         */
-       long GetUserCounter() const { return userlist.size(); }
+       size_t GetUserCounter() const { return userlist.size(); }
 
        /** Add a user pointer to the internal reference list
         * @param user The user to add
@@ -332,6 +335,11 @@ class CoreExport Channel : public Extensible
        /** Get the status of an "action" type extban
         */
        ModResult GetExtBanStatus(User *u, char type);
+
+       /** Write a NOTICE to all local users on the channel
+        * @param text Text to send
+        */
+       void WriteNotice(const std::string& text);
 };
 
 inline bool Channel::HasUser(User* user)