# IRC modes
###### tags: `matrix & irc`
Per [Matrix doc](https://github.com/matrix-org/matrix-appservice-irc/wiki/End-user-FAQ#i-am-a-chanop-and-have-a-spam-problem-how-can-i-fix-it-without-affecting-matrix-users) - 3rd option:
```
# prevent unidentified people from speaking in the chan
/mode #ansible-jboss +q $~a
# [+quiet] [not logged in], per https://freenode.net/kb/answer/extbans
# add a exemption to +q/+b for matrix.org irc bridge user
/mode #ansible-jboss +e *!*@gateway/shell/matrix.org/*
# [+exempt] [matrix.org irc bridge pattern]
```
The libera bridge has a different mask. Still exploring the
right wildcard, but for now we can exempt the bridge's IP range
```
/mode #ansible-jboss +e 2001:470:69fc:105::*
# https://libera.chat/guides/channelmodes
# Allow non-NickServ registered users to join (can speak, unless there is +q applied)
/mode #ansible-jboss -r
#Only ops can set topic
/mode #ansible-jboss +t
# Have to be in room to chat
/mode #ansible-jboss +n
# Allow colour
/mode #ansible-jboss -c
```