mIRC Home    About    Download    Register    News    Help

Print Thread
S
sdgsgsdgsgsd
sdgsgsdgsgsd
S
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 ?

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

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

S
sdgsgsdgsgsd
sdgsgsdgsgsd
S
thx a lot its works smile <3


Link Copied to Clipboard