mIRC Home    About    Download    Register    News    Help

Print Thread
User List Channel Protection #174476 08/04/07 01:57 PM
Joined: Apr 2007
Posts: 8
S
sdgsgsdgsgsd Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Apr 2007
Posts: 8
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 ?

Re: User List Channel Protection [Re: sdgsgsdgsgsd] #174533 09/04/07 01:21 PM
Joined: Apr 2007
Posts: 8
S
sdgsgsdgsgsd Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Apr 2007
Posts: 8
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
}
}

Re: User List Channel Protection [Re: sdgsgsdgsgsd] #174536 09/04/07 01:41 PM
Joined: Dec 2002
Posts: 2,022
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,022
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 #
  } 
}

Re: User List Channel Protection [Re: RoCk] #174537 09/04/07 02:08 PM
Joined: Apr 2007
Posts: 8
S
sdgsgsdgsgsd Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Apr 2007
Posts: 8
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...

Re: User List Channel Protection [Re: sdgsgsdgsgsd] #174538 09/04/07 02:14 PM
Joined: Dec 2002
Posts: 2,022
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,022
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 #
  } 
}

Last edited by RoCk; 09/04/07 02:21 PM.
Re: User List Channel Protection [Re: RoCk] #174540 09/04/07 02:20 PM
Joined: Apr 2007
Posts: 8
S
sdgsgsdgsgsd Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Apr 2007
Posts: 8
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

Last edited by sdgsgsdgsgsd; 09/04/07 02:22 PM.
Re: User List Channel Protection [Re: sdgsgsdgsgsd] #174541 09/04/07 02:21 PM
Joined: Dec 2002
Posts: 2,022
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,022
Try the edited one.

Re: User List Channel Protection [Re: RoCk] #174542 09/04/07 02:35 PM
Joined: Apr 2007
Posts: 8
S
sdgsgsdgsgsd Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Apr 2007
Posts: 8
thx a lot its works smile <3