Guest User

Untitled

a guest
Jul 19th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. on $*:TEXT:/^[.!@]count$/Si:#: {
  2. if (%maxu. [ $+ [ $chan ] ] == $null) { set %maxu. $+ $chan $nick($chan,0) $ctime }
  3. tokenize 32 %maxu. [ $+ [ $chan ] ] $iif($left($1,1) == @,msg $chan,.notice $nick)
  4. $3- $chan has $nick($chan,0) users: @Ops: $nick($chan,0,o) $(|) % $+ Halfops: $nick($chan,0,h,o) $(|) +Voices: $nick($chan,0,v,ho) $(|) Regulars: $nick($chan,0,r) $(|) Max users: $1 at $asctime($2,dd/mm/yyyy) $(|) Wilderness option: $calc($nick($chan,0,a,r) *3) options
  5. }
  6. on !*:JOIN:#: { if ($nick($chan,0) > $gettok(%maxu. [ $+ [ $chan ] ],1,32)) { set %maxu. $+ $chan $v1 $ctime } }
  7. on $*:TEXT:/^[!.]setkey( .|$)/Si:#: {
  8. if ($nick isop $chan) {
  9. if ($2 == $null) {
  10. unset %warkey. $+ $chan
  11. msg $chan Key removed.
  12. }
  13. else {
  14. set %warkey. $+ $chan $2
  15. msg $chan Key changed to: $2
  16. }
  17. }
  18. }
  19. on $*:TEXT:/^[!.]setmsg( .|$)/Si:#: {
  20. if ($nick isop $chan) {
  21. if ($2 == $null) {
  22. unset %warmsg. $+ $chan
  23. msg $chan Kick message removed.
  24. }
  25. else {
  26. set %warmsg. $+ $chan $2-
  27. msg $chan Kick message changed to: $2-
  28. }
  29. }
  30. }
  31. on $*:TEXT:/^[!.](warkick|wk)$/Si:#: {
  32. if ($nick isop $chan) {
  33. if (($me !ishop $chan) && ($me !isop $chan)) { .notice $nick I can't do this because I'm not an op or halfop! }
  34. else {
  35. var %x = $nick($chan,0,r), %km = %warmsg. [ $+ [ $chan ] ]
  36. while (%x) {
  37. if ($nick($chan,%x,r) ison $chan) { kick $chan $v1 %km }
  38. dec %x
  39. }
  40. if (%warkey. [ $+ [ $chan ] ] !== $null) { mode $chan +k $v1 }
  41. }
  42. }
  43. }
Add Comment
Please, Sign In to add comment