Advertisement
Sweetening

vaughnlive irc wrapper

Dec 4th, 2024
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. alias processBan {
  2. var %chanName $1
  3. var %nick $2
  4. var %message $3-
  5.  
  6. ; Word-checking logic
  7. if (someword isin %message || anotherword isin %message || whre isin %message) {
  8. ; Clean up the nickname
  9. var %targetName %nick
  10. %targetName = $replace(%targetName,
  11. [vip],,
  12. [ Streamer ],,
  13. [mvn],,
  14. [Staff],,
  15. $chr(10),,
  16. $chr(32),,
  17. $chr(91),,
  18. $chr(93),,
  19. $chr(160),, ; Handles non-breaking spaces
  20. ,) ; Handles triple spaces
  21.  
  22. ; Ensure targetName is valid before banning
  23. if (%targetName != $null) {
  24. msg %chanName .ban %targetName
  25. }
  26. }
  27. }
  28.  
  29. on *:TEXT:*:#: {
  30. var %chanName $chan
  31. var %nick $nick
  32. var %message $strip($1-)
  33.  
  34. ; Process only if the channel matches
  35. if (%chanName == #vl-mark || %chanName == #vl-notmark || %chanName == #vl-tech_corner || %chanName == #vl-themvn || %chanName == #vl-vaughnmas) {
  36. processBan %chanName %nick %message
  37. }
  38. }
  39.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement