- ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding, bool)
- {
- if (adding)
- {
- if (!channel->IsModeSet('M'))
- {
- channel->SetMode('M',true);
- return MODEACTION_ALLOW;
- }
- }
- else
- {
- if (channel->IsModeSet('M'))
- {
- channel->SetMode('M',false);
- return MODEACTION_ALLOW;
- }
- }
+/** User mode +R - unidentified users cannot message
+ */
+class AUser_R : public SimpleUserModeHandler
+{
+ public:
+ AUser_R(InspIRCd* Instance) : SimpleUserModeHandler(Instance, 'R') { }
+};