]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/channels.h
Change a few bits to use std::list instead of std::vector.
[user/henk/code/inspircd.git] / include / channels.h
index c273293102a1667006371f52afa6239295c4e3d8..748f6c24b9dcb043f9d37efd6ead2a6e2704c908 100644 (file)
@@ -58,7 +58,7 @@ class BanItem : public HostItem
 
 /** Holds a complete ban list
  */
-typedef std::vector<BanItem>   BanList;
+typedef std::list<BanItem>     BanList;
 
 /** A list of users on a channel
  */
@@ -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