]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/channels.h
Applied patch by psychon to make AddExtBanChar correctly take a single char
[user/henk/code/inspircd.git] / include / channels.h
index bf06e760a98ab0445771b87bd4044eec0af8a361..0d4c4813c28e114d17275f6e1a4a7d5cf843e39f 100644 (file)
@@ -349,11 +349,11 @@ class CoreExport Channel : public Extensible
        /** Part a user from this channel with the given reason.
         * If the reason field is NULL, no reason will be sent.
         * @param user The user who is parting (must be on this channel)
-        * @param reason The (optional) part reason
+        * @param reason The part reason
         * @return The number of users left on the channel. If this is zero
         * when the method returns, you MUST delete the Channel immediately!
         */
-       long PartUser(User *user, const char* reason = NULL);
+       long PartUser(User *user, std::string &reason);
 
        /* Join a user to a channel. May be a channel that doesnt exist yet.
         * @param user The user to join to the channel.
@@ -535,6 +535,10 @@ class CoreExport Channel : public Extensible
         */
        bool IsExtBanned(User *u, char type);
 
+       /** Overloaded version to check whether a particular string is extbanned
+        */
+       bool IsExtBanned(const std::string &str, char type);
+
        /** Clears the cached max bans value
         */
        void ResetMaxBans();