]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/channels.h
By moving OnPreCommand call in two places, modules (even with unverified commands...
[user/henk/code/inspircd.git] / include / channels.h
index c273293102a1667006371f52afa6239295c4e3d8..9c231008a3ce28cb8a9bfb079c1bc7120a5610af 100644 (file)
@@ -232,6 +232,13 @@ class CoreExport Channel : public Extensible
          */
        std::string GetModeParameter(char mode);
 
+       /** Sets the channel topic.
+        * @param u The user setting the topic
+        * @param t The topic to set it to. Non-const, as it may be modified by a hook.
+        * @param forceset If set to true then all access checks will be bypassed.
+        */
+       int SetTopic(User *u, std::string &t, bool forceset = false);
+
        /** Obtain the channel "user counter"
         * This returns the channel reference counter, which is initialized
         * to 0 when the channel is created and incremented/decremented