Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1.  
  2. on $*:TEXT:/^[.@.]ban/Si:#: {
  3. if ($nick isop $chan) || ($nick ishop $chan) {
  4. if ($1 .= !ban) { halt
  5. }
  6. if ($2 == $null) {
  7. notice $nick please enter a nick to ban! | halt
  8. }
  9. if ($2 isop $chan) && ($nick ishop $chan) || ($address($2,2) == $address($me,2)) {
  10. notice $nick you cannot ban $2 from $chan | halt
  11. }
  12. if ($3 .= $null) {
  13. ban -ku $+ $calc($3 * 60) $chan $address($2,2) $4-
  14. .kick $chan $2 14you've been banned for4 $3 14$iif($3 == 1,minute,minutes) $+ . reason:4 $iif($4- == $null,no reason.,$4-) | halt
  15. }
  16. if ($3 == $null) {
  17. notice $nick 14if the ban time in seconds is not specified the default is4 120 14seconds
  18. ban -ku120 $chan $address($2,2)
  19. kick $chan $2 14 you've been banned for2 14minutes. reason: $iif($4- == $null,no reason.,$4-) | halt
  20. }
  21. }
  22. else notice $nick access denied
  23. }
  24. on $*:TEXT:/^[.@]kb/Si:#: {
  25. if ($2 == $null) {
  26. notice $nick you must enter a nick to kb! | halt
  27. }
  28. if ($2 isop $chan) && ($nick ishop $chan) {
  29. notice $nick you cannot ban $2 from $chan | halt
  30. }
  31. if ($nick isop $chan) || ($nick ishop $chan) || ($wildsite == $address($me,2)) {
  32. mode $chan -e $address($2,2)
  33. mode $chan -e $2
  34. ban $chan $address($2,2)
  35. kick $chan $2 $iif($3- == $null,no reason.,$3-)
  36. }
  37. }
  38. on $*:TEXT:/^[.@](k|ick)/Si:#: {
  39. if ($2 == $null) {
  40. notice $nick you must enter a nick to kick! | halt
  41. }
  42. if ($1 == $kill) { halt }
  43. if ($2 isop $chan) && ($nick ishop $chan) || ($address($2,2) == $address($me,2)) {
  44. notice $nick you cannot kick $2 from $chan | halt
  45. }
  46. if ($nick isop $chan) || ($nick ishop $chan) || ($wildsite == $address($me,2)) {
  47. .kick $chan $2 $iif($3- == $null,no reason.,$3-)
  48. }
  49. }
  50. on *:BAN:#: {
  51. if ($me isop $chan) {
  52. mode $chan -e $address($2,2)
  53. mode $chan -e $2
  54. }
  55. }
  56. on *:KICK:#: {
  57. if ($me isop $chan) {
  58. mode $chan -e $2
  59. mode $chan -e $address($2,2)
  60. }
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement