mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2007
Posts: 8
S
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 ?

Joined: Apr 2007
Posts: 8
S
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
}
}

Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031
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 #
  } 
}

Joined: Apr 2007
Posts: 8
S
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...

Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031
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.
Joined: Apr 2007
Posts: 8
S
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.
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031
Try the edited one.

Joined: Apr 2007
Posts: 8
S
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Apr 2007
Posts: 8
thx a lot its works smile <3


Link Copied to Clipboard