X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fchannels.h;h=0a131ddb35eca048542de758537c2a835819bbdb;hb=804d58e2001f04786d2594f046d591b664235642;hp=be84ac8009736510e031fa892a34c4cd51d1a6ed;hpb=2c51a2bf17b6c377f0207f3d89b4b3f399fc0178;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/channels.h b/include/channels.h index be84ac800..0a131ddb3 100644 --- a/include/channels.h +++ b/include/channels.h @@ -205,8 +205,9 @@ class CoreExport Channel : public Extensible * 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 part reason + * @return True if the user was on the channel and left, false if they weren't and nothing happened */ - void PartUser(User *user, std::string &reason); + bool PartUser(User* user, std::string& reason); /** Join a local user to a channel, with or without permission checks. May be a channel that doesn't exist yet. * @param user The user to join to the channel. @@ -331,6 +332,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)