Page 1 of 1

Only allow messages from registered user

Posted: Tue Jan 24, 2023 12:44 am
by IOCorp
I hope I explain well...
It would be of great help if a user whose nick is registered enters the server, he cannot write in any room or private room until he identifies himself.
since on my server, they use registered nicks of other users and bother posing as other people and leave before the services change their nick.
Hopefully something can be done.
Thank you very much.

Re: Registered user

Posted: Tue Jan 24, 2023 1:16 pm
by CrazyCat

Re: Registered user

Posted: Tue Jan 24, 2023 10:31 pm
by IOCorp
CrazyCat wrote: Tue Jan 24, 2023 1:16 pm Use a security-group
Could you tell me how please?.

Re: Registered user

Posted: Wed May 24, 2023 9:55 am
by Syzop
(I know, old topic, was just going through it)

A more common question is to limit only private messages to registered users, while still allowing channel messages. This is explained in "Disable private message" in the new Security guide.

For disallowing messages in channels from unregistered users there is normally channel mode +M which you set on individual channels.

If you would really want to disallow that for EVERY channel then set::restrict-commands can help with that.
This example would disable both private and public messages from unregistered users:

Code: Select all

set {
    restrict-commands {
        private-message {
            except { identified yes; }
        }
        private-notice {
            except { identified yes; }
        }
        channel-message {
            except { identified yes; }
        }
        channel-notice {
            except { identified yes; }
        }
    }
}