Advertisement
pony

addinglocalgloble shit list

Feb 24th, 2020
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.41 KB | None | 0 0
  1. alias ds.user {
  2. var %chan, %nick, %addy, %a, %b, %c, %d, %l
  3. %chan = $1
  4. %nick = $2
  5. %addy = $address(%nick,1)
  6. if ($level($md5($+(%addy,ownerlist))) == ownerlist) return GlobalOwner
  7. if ($level($md5($+(%addy,ownerlist,%chan))) == ownerlist) return LocalOwner
  8. if ($level($md5($+(%addy,hostlist))) == hostlist) return GlobalHost
  9. if ($level($md5($+(%addy,hostlist,%chan))) == hostlist) return LocalHost
  10. if ($level($md5($+(%addy,denyopslist))) == nohammers) return GlobalDenyOps
  11. if ($level($md5($+(%addy,denyopslist,%chan))) == nohammers) return LocalDenyOps
  12. if ($level($md5($+(%addy,denyshitlist))) == shitlistt) return Globalshitlistt
  13. if ($level($md5($+(%addy,denyshitlist,%chan))) == shitlistt) return Localshitlistt
  14. return Unlisted
  15. }
  16. menu nicklist {
  17. Userlist $$1
  18. .$$iif($ds.user($active,$$1) == GlobalOwner, $style(1) Global, Global) Owner: {
  19. var %a, %l
  20. %a = $md5($+($address($$1,1),ownerlist))
  21. if ($ds.user($active,$$1) == GlobalOwner) .ruser ownerlist %a
  22. else .auser ownerlist %a $$1 Global
  23. }
  24. .$$iif($ds.user($active,$$1) == LocalOwner, $style(1) Local, Local) Owner: {
  25. var %a, %l
  26. %a = $md5($+($address($$1,1),ownerlist,$active))
  27. if ($ds.user($active,$$1) == LocalOwner) .ruser ownerlist %a
  28. else .auser ownerlist %a $$1 $active
  29. }
  30. .-
  31. .$$iif($ds.user($active,$$1) == GlobalHost, $style(1) Global, Global) Host: {
  32. var %a, %l
  33. %a = $md5($+($address($$1,1),hostlist))
  34. if ($ds.user($active,$$1) == GlobalHost) .ruser hostlist %a
  35. else .auser hostlist %a $$1 Global
  36. }
  37. .$$iif($ds.user($active,$$1) == LocalHost, $style(1) Local, Local) Host: {
  38. var %a, %l
  39. %a = $md5($+($address($$1,1),hostlist,$active))
  40. if ($ds.user($active,$$1) == LocalHost) .ruser hostlist %a
  41. else .auser hostlist %a $$1 $active
  42. }
  43. .-
  44. .$$iif($ds.user($active,$$1) == GlobalDenyOps, $style(1) Global, Global) Deny Hammers: {
  45. var %a, %l
  46. %a = $md5($+($address($$1,1),denyopslist))
  47. if ($ds.user($active,$$1) == GlobalDenyOps) .ruser nohammers %a
  48. else .auser nohammers %a $$1 Global
  49. }
  50. .$$iif($ds.user($active,$$1) == LocalDenyOps, $style(1) Local, Local) Deny Hammers: {
  51. var %a, %l
  52. %a = $md5($+($address($$1,1),denyopslist,$active))
  53. if ($ds.user($active,$$1) == LocalDenyOps) .ruser nohammers %a
  54. else .auser nohammers %a $$1 $active
  55. }
  56. .-
  57. .$$iif($ds.user($active,$$1) == Globaldenyshitlist, $style(1) Global, Global) Shit Listt: {
  58. var %a, %l
  59. %a = $md5($+($address($$1,1),GlobalDenyshitlist,$active))
  60. if ($ds.user($active,$$1) == GlobalDenyshitlist) .ruser shitlistt %a
  61. else .auser shitlistt %a $$1 Global
  62. }
  63. .$$iif($ds.user($active,$$1) == LocalDenyshitlistt, $style(1) Local, Local) Shit Listt: {
  64. var %a, %l
  65. %a = $md5($+($address($$1,1),LocalDenyshitlistt,$active))
  66. if ($ds.user($active,$$1) == LocalDenyshitlistt) .ruser shitlistt %a
  67. else .auser shitlistt %a $$1 $active
  68. }
  69. }
  70. on *:OWNER:*: { if ($istok(GlobalDenyOps LocalDenyOps,$ds.user(#,$opnick),32)) .raw MODE # -q $opnick }
  71. on *:OP:*: { if ($istok(GlobalDenyOps LocalDenyOps,$ds.user(#,$opnick),32)) .raw MODE # -o $opnick }
  72. on *:JOIN:*: {
  73. var %test, %l
  74. %test = $ds.user(#,$nick)
  75. if ($istok(GlobalOwner LocalOwner,%test,32)) .raw MODE # +q $opnick
  76. if ($istok(GlobalHost LocalHost,%test,32)) .raw MODE # +o $opnick
  77. if ($istok(GlobalDenyshitlistt LocalDenyshitlistt,%test,32)) /echo -a test
  78. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement