Can this be better - 02/05/11 02:59 PM
Hi guys,I'm trying to put a few things together and it seems to work for the most part but I was wondering if it could be writing a better way.
I only want ops to use it so I have it set to lvl20 .One thing I wasn't sure about which I'd like to do is add to the ban/kick section that if an op tries to kick or ban another fellow op,
the script will just ignore it but I cant seem to work it out.
I tried this but it didnt work:
if ($$2 isop $chan) { halt
TIA,D00M
I only want ops to use it so I have it set to lvl20 .One thing I wasn't sure about which I'd like to do is add to the ban/kick section that if an op tries to kick or ban another fellow op,
the script will just ignore it but I cant seem to work it out.
I tried this but it didnt work:
if ($$2 isop $chan) { halt
Code:
#kban on on *:join:#PRIV_CHAN:{ if (!$istok(SOME NICKS HERE,$nick,32)) { inc %kbcount ban -ku60 $chan $nick 3 4You Dont have enough Shizzle in your Minizzle!!! 15Whitelist:3 %kbcount } } on 20:TEXT:!ban *:#MAIN_CHAN,#PRIV_CHAN:{ if ($me isop $chan) && ($$2 isop $chan) { set %reason. [ $+ [ $$2 ] ] $3- if (%reason. [ $+ [ $$2 ] ] == $null) { set %reason. [ $+ [ $$2 ] ] No Reason } inc %bcount ban -ku86400 $chan $$2 3 15Reason:4 %reason. [ $+ [ $$2 ] ] 8¤ 15Requested By:9 $nick 8¤ 15BanTotal:3 %bcount unset %reason. [ $+ [ $$2 ] ] } } on 20:TEXT:!kick *:#MAIN_CHAN,#PRIV_CHAN:{ if ($me isop $chan) && ($$2 isop $chan) { set %reason. [ $+ [ $$2 ] ] $3- if (%reason. [ $+ [ $$2 ] ] == $null) { set %reason. [ $+ [ $$2 ] ] No Reason } inc %kcount kick $chan $$2 15Reason:4 %reason. [ $+ [ $$2 ] ] 8¤ 15Requested By:9 $nick 8¤ 15KickTotal:3 %kcount unset %reason. [ $+ [ $$2 ] ] } } on 20:TEXT:!aban *:#MAIN_CHAN,#PRIV_CHAN:{ if ($nick isop $chan) { mode $chan +b $2- } } on 20:TEXT:!rban *:#MAIN_CHAN,#PRIV_CHAN:{ if ($nick isop $chan) { mode $chan -b $2- } } on *:TEXT:!v+ *:#MAIN_CHAN:{ if ($nick isop $chan) { mode $chan +v $2- } } on 20:TEXT:!dv+ *:#MAIN_CHAN:{ if ($nick isop $chan) { mode $chan -v $2- } } on 20:TEXT:!triggers:#MAIN_CHAN,#PRIV_CHAN:{ if ($nick isop $chan) { notice $nick Op triggers are as follows:- !topic <SomeTopic>|!ban <nick> <reason>|!kick <nick> <reason>|!ban <nick>|!kick <nick>|!aban <*!*@host> (Adds a host to the chan ban list)|!rban <*!*@host> (Removes host from the chan ban list)| !v+ <nick>|!dv+ <nick> } } #Kban end Menu menubar,status,channel { @KickBan .$iif($group(#Kban).status == on,$style(2)) Enable:/.enable #Kban | echo -a 14[3Kban Script have been Enabled14]. .$iif($group(#Kban).status == off,$style(2)) Disable:/.disable #Kban | echo -a 14[4Kban Script have been Disabled14]. }
TIA,D00M