X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fchannels.h;h=0d4c4813c28e114d17275f6e1a4a7d5cf843e39f;hb=14e4768140d796b3cb9eb979e74e48bffabd9bfc;hp=bf06e760a98ab0445771b87bd4044eec0af8a361;hpb=552ab1e39852733203d2037aa0bbaa1b63fd94a2;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/channels.h b/include/channels.h index bf06e760a..0d4c4813c 100644 --- a/include/channels.h +++ b/include/channels.h @@ -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();