westor

+-CHMODES for Konrado v1.0

Jan 30th, 2021 (edited)
604
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.40 KB | None | 0 0
  1. ON *:TEXT:*:#: {
  2.   tokenize 32 $strip($1-)
  3.  
  4.   var %modes = +q,-q,+a,-a,+o,-o,+h,-h,+v,-v
  5.  
  6.   if ($istok(%modes,$1,44)) { give_mode $1 }
  7. }
  8.  
  9. alias -l give_mode {
  10.   if ($nick !isop $chan) { msg $chan ( $+ $nick $+ ): _!_ | return }
  11.  
  12.   var %t = $nick($chan,0)
  13.   var %i = 1
  14.  
  15.   while (%i <= %t) {
  16.     var %n = $nick($chan,%i)
  17.  
  18.     if (%n) && (%n !== $me) { mode $chan $1 %n }
  19.  
  20.     inc %i
  21.   }
  22. }
  23.  
Add Comment
Please, Sign In to add comment