Implement ban by nick regexp (in MUCs)

* Move ban action to separate function
* Implement ban by nick regexp
This commit is contained in:
eleksir
2023-08-20 10:55:02 -07:00
parent 939ceaebfb
commit 39ac09f82a
3 changed files with 133 additions and 93 deletions

View File

@@ -53,6 +53,7 @@ type myBlackList struct {
RoomName string `json:"room_name,omitempty"`
ReasonEnable bool `json:"reason_enable,omitempty"`
JidRe []string `json:"jid_re,omitempty"`
NickRe []string `json:"nick_re,omitempty"`
} `json:"blacklist,omitempty"`
}