There are three so called user modes you can set to block private messages (setting user mode R is a sane default):
- c: blocks private messages from users that don't share a channel with you (probably keeps out all network wide trolls)
- R: blocks private messages from users with unregistered nicks (probably keeps out all trolls)
- g: blocks private messages from everybody you haven't approved (when somebody that you haven't approved yet sends you a private message, they will be informed you are blocking those and you will be informed they tried to send to you and remind you how you can approve them)
- to add somebody to your list type: /accept +nick
- to remove somebody from your list type: /accept -nick
- to show who is on your list: /accept *
Code: Select all
/umode +R
Code: Select all
/umode -R
- To do this in HexChat (the default IRC client on Cinnamon, MATE, and Xfce):
- open HexChat > Network List from its menu
- select the network you want to edit (e.g., select "Linux Mint") and click Edit
- go to the Connect Commands tab and press Add
- type the command there and press Enter to add it (note that the / will be dropped from the command you entered, which is fine)
- To do this in Konversation (the default IRC client on KDE):
- open File > Server List from its menu
- select the network you want to edit (e.g., select "Linux Mint") and click Edit
- type the command there in the Commands textbox
- Bonus for weechat users:
- The convenient accept alias isn't set by default on weechat but you can easily add it with:
Code: Select all
/alias add accept quote ACCEPT
- To automatically set the user mode when you connect change your irc.server.<network name>.command setting.
- The convenient accept alias isn't set by default on weechat but you can easily add it with: