mIRC Homepage
Posted By: sdgsgsdgsgsd User List Channel Protection - 08/04/07 01:57 PM
i need to know .. like a erazorbots have a user list only masters and admin can kick ban deop ops etc... how i make it a check $ulevel on Kick and ban deop op ?
Posted By: sdgsgsdgsgsd Re: User List Channel Protection - 09/04/07 01:21 PM
Example like this, i got works it on me and bot. but i want it works on levels

on *:ban:#chan:{
if ($nick != $me && *!*@Kisserr.users.quakenet.org !iswm $ial($nick)) {
mode $chan -b $2-
kick $chan $nick you are not allowed to ban in $chan
mode $chan -o+b $nick $wildsite
}
}
Posted By: RoCk Re: User List Channel Protection - 09/04/07 01:41 PM
Is this what you mean?

Code:
on @*:BAN:#chan: {
  if (($nick != $me) && ($wildsite != *!*@Kisserr.users.quakenet.org)) { 
    mode # -ob+b $nick $banmask $wildsite
    kick # $nick you are not allowed to ban on #
  } 
}
Posted By: sdgsgsdgsgsd Re: User List Channel Protection - 09/04/07 02:08 PM
hmm, i mean example, i have a user levels voice op master admin and globaladmin, i need to read on mode have that user on master or admin if he is he can kick ban deop op other in chan, if not bot says ur not allowed to do that, and kb him. smile my bot is almost ready but that is only think what i need to know...
Posted By: RoCk Re: User List Channel Protection - 09/04/07 02:14 PM
This?

Code:
on @!*:BAN:#chan: {
  var %allowed = admin globaladmin master
  if (!$istok(%allowed,$level($fulladdress),32)) {
    mode # -ob+b $nick $banmask $wildsite
    kick # $nick you are not allowed to ban on #
  } 
}
Posted By: sdgsgsdgsgsd Re: User List Channel Protection - 09/04/07 02:20 PM
yes smile but i tested, bot doesnt know me its allowed only himself to ban on chan and in user list read : globaladmin:*!*@Kisserr.users.quakenet.org
hmm $fulladdress i change my address to full
Posted By: RoCk Re: User List Channel Protection - 09/04/07 02:21 PM
Try the edited one.
Posted By: sdgsgsdgsgsd Re: User List Channel Protection - 09/04/07 02:35 PM
thx a lot its works smile <3
© mIRC Discussion Forums