matthijs186

!tblock

Oct 6th, 2013
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.59 KB | None | 0 0
  1. on *:TEXT:!tblock*:#Davo_Bot:{
  2.   if (!$nick(#,$nick,~&@)) { notice $nick Permissions denied. | halt }
  3.   if (!$2) { msg # Incorrect syntax. Use ADD or DEL. | halt }
  4.   if ($2 == add) {
  5.     if (! isin $3) || ($3 !ison $chan && - isin $3) || (+ isin $3) || (. isin $3) { msg # You cannot block command prefixes: $+(",$3,".) | halt }
  6.     if ($nick(#,$3,~&@%+)) { msg # You cannot block someone's nickname! | halt }
  7.     mode # +b $+(~T:block:*,$3,*)
  8.     halt
  9.   }
  10.   if ($2 == del) {
  11.     mode # -b $+(~T:block:*,$3,*)
  12.     halt
  13.   }
  14.   else { msg # Incorrect syntax $+(",$2,".) Use ADD or DEL. }
  15.   halt
  16. }
Advertisement
Add Comment
Please, Sign In to add comment