Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias processBan {
- var %chanName $1
- var %nick $2
- var %message $3-
- ; Word-checking logic
- if (someword isin %message || anotherword isin %message || whre isin %message) {
- ; Clean up the nickname
- var %targetName %nick
- %targetName = $replace(%targetName,
- [vip],,
- [ Streamer ],,
- [mvn],,
- [Staff],,
- $chr(10),,
- $chr(32),,
- $chr(91),,
- $chr(93),,
- $chr(160),, ; Handles non-breaking spaces
- ,) ; Handles triple spaces
- ; Ensure targetName is valid before banning
- if (%targetName != $null) {
- msg %chanName .ban %targetName
- }
- }
- }
- on *:TEXT:*:#: {
- var %chanName $chan
- var %nick $nick
- var %message $strip($1-)
- ; Process only if the channel matches
- if (%chanName == #vl-mark || %chanName == #vl-notmark || %chanName == #vl-tech_corner || %chanName == #vl-themvn || %chanName == #vl-vaughnmas) {
- processBan %chanName %nick %message
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement