Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2020
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 KB | None | 0 0
  1. # Feb 21, 2020
  2. #
  3. # Computertech of mibbit and freenode - wants a silly command that will do a mute ban on mibbit, via a public command.
  4. # for nick only, not the hostmask
  5. #
  6. #######
  7. #
  8. # This script is for use by Computech only. It is not to be given to, or shared with anyone. If anyone wants to see it, tell them to ask me and
  9. # I will probably do so. I just want to be the one that decides that. :)
  10. #
  11. #
  12.  
  13.  
  14.  
  15. # NOTE!! In proc, checks to see if nick that called this proc, is op'd in chan
  16. bind pub - "!mute" do_the_mute_ban
  17. bind pub - "!unmute" do_the_unmute_ban
  18.  
  19.  
  20. ###
  21. ###
  22. proc do_the_mute_ban {nick ushost handle chan text} {
  23.  
  24. if {![llength [split $text]]} {
  25. putserv "privmsg $chan :Syntax: !mute <nick>"
  26. return 0
  27. }
  28.  
  29. if {![botisop $chan]} {
  30. putserv "privmsg $chan :/<pssst!/> I'm not op'd "
  31. return 0
  32. }
  33.  
  34.  
  35. if {![isop $nick $chan]} {
  36. putserv "privmsg $chan :Sorry $nick, but you are not op'd in $chan right now"
  37. return 0
  38. }
  39.  
  40.  
  41. set nick2mute [lindex [split $text] 0 ]
  42.  
  43. if {![onchan $nick2mute $chan]} {
  44. putserv "privmsg $chan :Sorry $nick, but I don't see $nick2mute on $chan right now"
  45. return 0
  46. }
  47.  
  48. putserv "mode $chan +b ~q:$nick2mute!*@* "
  49.  
  50. putserv "privmsg $chan :You Have Been Muted "
  51.  
  52.  
  53. }
  54. ###
  55. ###
  56.  
  57.  
  58. ###
  59. proc do_the_unmute_ban {nick uhost handle chan text} {
  60.  
  61.  
  62. if {![llength [split $text]]} {
  63. putserv "privmsg $chan :Syntax: !unmute <nick>"
  64. return 0
  65. }
  66.  
  67. if {![botisop $chan]} {
  68. putserv "privmsg $chan :/<pssst!/> I'm not op'd "
  69. return 0
  70. }
  71.  
  72.  
  73. if {![isop $nick $chan]} {
  74. putserv "privmsg $chan :Sorry $nick, but you are not op'd in $chan right now"
  75. return 0
  76. }
  77.  
  78.  
  79. set nick2unmute [lindex [split $text] 0 ]
  80.  
  81. if {![onchan $nick2unmute $chan]} {
  82. putserv "privmsg $chan :Sorry $nick, but I don't see $nick2unmute on $chan right now"
  83. return 0
  84. }
  85.  
  86. putserv "mode $chan -b ~q:$nick2unmute!*@* "
  87.  
  88. putserv "privmsg $chan :You can talk again now "
  89.  
  90. }
  91. ###
  92.  
  93.  
  94.  
  95. putlog "Nick muter - silly script for Computertech and Computertech ONLY! - loaded. Find jack3 on Freenode :) "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement