#include "inspircd.h"
#include "modules/exemption.h"
+#include "modules/names.h"
#include "modules/who.h"
class AuditoriumMode : public SimpleChannelModeHandler
class ModuleAuditorium
: public Module
+ , public Names::EventListener
, public Who::EventListener
{
CheckExemption::EventProvider exemptionprov;
public:
ModuleAuditorium()
- : Who::EventListener(this)
+ : Names::EventListener(this)
+ , Who::EventListener(this)
, exemptionprov(this)
, aum(this)
, joinhook(this)
Version GetVersion() CXX11_OVERRIDE
{
- return Version("Allows for auditorium channels (+u) where nobody can see others joining and parting or the nick list", VF_VENDOR);
+ return Version("Provides channel mode +u, auditorium channels where nobody can see others joining and parting or the nick list", VF_VENDOR);
}
/* Can they be seen by everyone? */
return false;
}
- ModResult OnNamesListItem(User* issuer, Membership* memb, std::string& prefixes, std::string& nick) CXX11_OVERRIDE
+ ModResult OnNamesListItem(LocalUser* issuer, Membership* memb, std::string& prefixes, std::string& nick) CXX11_OVERRIDE
{
if (IsVisible(memb))
return MOD_RES_PASSTHRU;