Advertisement
pierte

ChanServ Commands on Channel

Apr 9th, 2020
814
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 3.44 KB | None | 0 0
  1. on 1:input:#:{
  2.   ; ChanServ commands on channel.
  3.   ; Set your own special character for the commands like ,.;!@
  4.   ; To set it up you just have to write @set and a popup will appear asking your special character.
  5.   ; The special character can be changed any time.
  6.   ; ATTENTION if you don't set the special character, the script will not work.
  7.   ; Joker @ irc.gotham.chat
  8.  
  9.   ; This commands require ChanServ access. (you MUST to put the special character in front of the commands. ex. type: 'op Batman)
  10.   if ($1 == @set) { set %char $$?="Enter special character." | HALT } ;use: @set character to set your own special character
  11.   if ($1 == %char $+ op) { cs op $chan $2- } ;ex: 'op Batman
  12.   if ($1 == %char $+ deop) { cs deop $chan $2- } ;ex: 'deop Batman
  13.   if ($1 == %char $+ voice) { cs voice $chan $2- } ;ex: 'voice Batman
  14.   if ($1 == %char $+ devoice) { cs devoice $chan $2- } ;ex: 'devoice Batman
  15.   if ($1 == %char $+ halfop) { cs halfop $chan $2- } ;ex: 'halfop Batman
  16.   if ($1 == %char $+ dehalfop) { cs dehalfop $chan $2- } ;ex: 'dehalfop Batman
  17.   if ($1 == %char $+ protect) { cs protect $chan $2- } ;ex: 'protect Batman
  18.   if ($1 == %char $+ deprotect) { cs deprotect $chan $2- } ;ex: 'deprotect Batman
  19.   if ($1 == %char $+ owner) { cs owner $chan $2- } ;ex: 'owner Batman
  20.   if ($1 == %char $+ deowner) { cs deowner $chan $2- } ;ex: 'deowner Batman
  21.   if ($1 == %char $+ ban) { cs kickban $chan $2- } ;ex: 'ban Batman reason
  22.   if ($1 == %char $+ unban) { cs unban $chan $2- } ;ex: 'unban Batman
  23.   if ($1 == %char $+ kick) { cs kick $chan $2- } ;ex: 'kick Batman reason
  24.   if ($1 == %char $+ b) { cs kickban $chan $2- | HALT } ;Silent version of 'ban
  25.   if ($1 == %char $+ k) { cs kick $chan $2- | HALT } ;Silent version of 'kick
  26.  
  27.  
  28.   ; This commands require ChanServ access. (you MUST to put the special character in front of the commands. ex: 'op Batman)
  29.   if ($1 == %char $+ add) { cs $2 $chan add $3- } ;ex: 'add vop Batman (access levels are VOP, HOP, AOP, SOP)
  30.   if ($1 == %char $+ del) { cs $2 $chan del $3- } ;ex: 'del vop Batman (access levels are VOP, HOP, AOP, SOP)
  31.   if ($1 == %char $+ list) { cs $2- $chan list } ;ex: 'list vop (to see all users that have VOP access)
  32.   if ($1 == %char $+ chacc) { cs access $chan list } ;ex: 'chacc (to see the complete access list of the channel)
  33.   if ($1 == %char $+ access) { ns listchans } ;ex: 'access (to see your own access list)
  34.  
  35.  
  36.   ; This commands don't require ChanServ access. (you DON'T have to put any special character in front of the commands. ex. type: op Batman)
  37.   if ($1 == op) { mode $chan +o $2- } ;ex: op Batman
  38.   if ($1 == deop) { mode $chan -o $2- } ;ex: deop Batman
  39.   if ($1 == voice) { mode $chan +v $2- } ;ex: voice Batman
  40.   if ($1 == devoice) { mode $chan -v $2- } ;ex: devoice Batman
  41.   if ($1 == halfop) { mode $chan +h $2- } ;ex: halfop Batman
  42.   if ($1 == dehalfop) { mode $chan -h $2- } ;ex: dehalfop Batman
  43.   if ($1 == protect) { mode $chan +a $2- } ;ex: protect Batman
  44.   if ($1 == deprotect) { mode $chan -a $2- } ;ex: deprotect Batman
  45.   if ($1 == owner) { mode $chan +q $2- } ;ex: owner Batman
  46.   if ($1 == deowner) { mode $chan -q $2- } ;ex: deowner Batman
  47.   if ($1 == kick) { kick $chan $2- } ;ex: kick Batman reason
  48.   if ($1 == ban) { ban $chan $2- | kick $chan $2- } ;ex: ban Batman reason
  49.   if ($1 == invite) { invite $2- $chan } ;ex: invite Batman
  50.   if ($1 == pm) { query $2- } ;ex. type: pm Batman
  51.   if ($1 == slap) { me slaps the shit out of $2-, capisci? } ;ex. type: slap Batman
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement