Skip to content
MSN Addons

protection under hybrid current status dialog

A TG007 community discussion started by area63.

Discussion 5 posts
Page 1 of 1
Open
Topic #5517 · 5 published posts · 835 views

I have done an extentsive search on tech, and come up with nothing close to what I need and can't seem to get this edited right I would apriciate some help, would really like to change this without changing the menu channel that goes along with it

 

 #antiowner off
on *:OWNER:#:{
 if ($me isowner #) {
   if ($opnick == $me ) || ($nick == $me) halt {
     mode # -q $opnick 
     access # clear OWNER
     prop # OWNERKEY $msn.pass
     access # add OWNER *! $+ $$ial($me $+ *,1).addr
   }
 }
}
#antiowner end

#antihost off
on *:OP:#:{
 if ($me isop #) {  
   if ($opnick == $me ) || ($nick == $me) halt {
     mode # -o $opnick 
     access # clear HOST
     if ($me isop #) && ($me !isowner #) { access # add HOST *! $+ $$ial($me $+ *,1).addr }
   }
 }
}
#antihost end

#deowner off
on *:DEOWNER:#: {
 if ($opnick == $me) && ($nick != $me) {
   var %p $msn.roompass(#)
   mode $me +h %p
   access # clear OWNER
   kick # $nick Don't
   prop # OWNERKEY $msn.pass
   access # add OWNER *! $+ $$ial($me $+ *,1).addr
   .auser shitlist *! $+ $$ial($nick $+ *,1).addr $msn.decode($nick) De-Owner
 }
}
#deowner end

#dehost off
on *:DEOP:#:{
 if ($opnick == $me) && ($nick != $me) {
   var %p $msn.roompass(#)
   mode $me +h %p
   access # clear HOST
   kick # $nick $read(text\reason.txt)
   access # add HOST *! $+ $$ial($me $+ *,1).addr
 }
}
#dehost end

#revenge off
on *:KICK:*: {
 if ($knick == $me) {
   if (!$msn.ini(kickrj)) { 
     var %p $msn.roompass($msn.get($cid,fullroom))
     sockwrite -tn msn.server. $+ $cid JOIN $msn.get($cid,fullroom) %p
   }
   sockwrite -tn msn.server. $+ $cid KICK $msn.get($cid,fullroom) $nick :Revenge Kick
   sockwrite -tn msn.server. $+ $cid PROP $msn.get($cid,fullroom) OWNERKEY $msn.pass
   sockwrite -tn msn.server. $+ $cid ACCESS $msn.get($cid,fullroom) add OWNER *! $+ $$ial($me $+ *,1).addr
 }
}
#revenge end

#guestkicker off
on *:JOIN:* {
 if (> isin $nick) { kick # $nick | access # add DENY $nick }
ick }
}
#guestkicker end

 

looked all over in rumbaar, and can't locate anything like I need this

 

tryed to edit this myself, but what I'm needing is this re writen to deop the oped host or owner not bann and not change the host, and owner pass's who's not on my admin list, but as is it will not let my listed admins 'owner's or host' using the room passes, right now only my script will host them with the admin commands @owner and @host

 

it's the one on the hybrid script status it's under protections de-owner anti-owner, de-host anti-host

 

the one below is the same as above sept edited some with the help from people in Rumbaars place, close to working but just not quite there yet

 

#antiowner on 
on *:OWNER:#:{ 
 if ($me isowner #) { 
   if ($opnick == $me ) || ($nick == $me) halt { 
     mode # -q $opnick 
     access # add OWNER *! $+ $$ial($me $+ *,1).addr 
   } 
 } 
} 
#antiowner end 

#antihost on 
on *:OP:#:{ 
 if ($me isop #) {  
   if ($opnick == $me ) || ($nick == $me) halt { 
     mode # -o $opnick 
     if ($me isop #) && ($me !isowner #) { access # add HOST *! $+ $$ial($me $+ *,1).addr } 
   } 
 } 
} 
#antihost end 

#deowner on 
on *:DEOWNER:#: { 
 if ($opnick == $me) && ($nick != $me) { 
   var %p $msn.roompass(#) 
   mode $me +h %p 
   kick # $nick Don't 
   access # add OWNER *! $+ $$ial($me $+ *,1).addr 
 } 
} 
#deowner end 

#dehost on 
on *:DEOP:#:{ 
 if ($opnick == $me) && ($nick != $me) { 
   var %p $msn.roompass(#) 
   mode $me +h %p 
   kick # $nick $read(text\reason.txt) 
   access # add HOST *! $+ $$ial($me $+ *,1).addr 
 } 
} 
#dehost end 

#revenge off 
on *:KICK:*: { 
 if ($knick == $me) { 
   if (!$msn.ini(kickrj)) { 
     var %p $msn.roompass($msn.get($cid,fullroom)) 
     sockwrite -tn msn.server. $+ $cid JOIN $msn.get($cid,fullroom) %p 
   } 
   sockwrite -tn msn.server. $+ $cid KICK $msn.get($cid,fullroom) $nick :Revenge Kick 
   sockwrite -tn msn.server. $+ $cid ACCESS $msn.get($cid,fullroom) add OWNER *! $+ $$ial($me $+ *,1).addr 
 } 
} 
#revenge end 

#guestkicker off 
on *:JOIN:* { 
 if (> isin $nick) { kick # $nick If you want to be a guest go to a hotel :@ | access # add DENY $nick } 
} 
#guestkicker end

 

when I did try some of the help offered there, and it disables this code below which works perfectly

 

raw 822:*:{ 
 if (($nick isowner $chan(1)) && ($me isowner $chan(1))) || (($nick isop $chan(1)) && ($me isop $chan(1))) { 
   .auser $iif($nick isowner $chan(1),qaway,oaway) $nick 
   mode $chan(1) -o $nick 
 } 
} 

raw 821:*: { 
 if ($level($nick) == qaway) || ($level($nick) == oaway) { 
   mode $chan(1) $iif($level($nick) == qaway,+q,+o) $nick 
   .ruser $level($nick) $nick 
 }

 

oh and what I forgot to say was the admins are not listed on the access list, so they don't come in or onjoine brown or gold, only the other bots are listed on the access list, another idea I thought of was, would there be away to put a timer on this option

 

like an admin comes in and is oped by my bot then trys to host or owner a none admin say like a timer would make the user password off limits for siad amount of time, say ten minute's

Edited Dec 23, 2005 6:01 PM by area63

may i ask u wt r u joining Groups Or Chat rooms ?!

may i ask u wt r u joining Groups Or Chat rooms ?!

 

chat room, I thought only chat rooms not group chats could have pass's

 

thank you for looking into this for me

Try this code...

 

#antiowner off
on *:OWNER:#:{
if ($me isowner #) {
if ($opnick == $me ) || ($nick == $me) halt
else {
mode # -q $opnick 
access # clear OWNER
prop # OWNERKEY $msn.pass($rand(18,31))
access # add OWNER *! $+ $$ial($me $+ *,1).addr
}
}
}
#antiowner end

#antihost off
on *:OP:#:{
if ($me isop #) { 
if ($opnick == $me ) || ($nick == $me) halt
else {
mode # -o $opnick 
access # clear HOST
if ($me isop #) && ($me !isowner #) { access # add HOST *! $+ $$ial($me $+ *,1).addr }
}
}
}
#antihost end

#deowner off
on *:DEOWNER:#: {
if ($opnick == $me) && ($nick != $me) {
var %p $msn.roompass(#)
mode $me +h %p
access # clear OWNER
kick # $nick Don't
prop # OWNERKEY $msn.pass($rand(18,31))
access # add OWNER *! $+ $$ial($me $+ *,1).addr
.auser shitlist *! $+ $$ial($nick $+ *,1).addr $msn.decode($nick) De-Owner
}
}
#deowner end

#dehost off
on *:DEOP:#:{
if ($opnick == $me) && ($nick != $me) {
var %p $msn.roompass(#)
mode $me +h %p
access # clear HOST
kick # $nick $read(text\reason.txt)
access # add HOST *! $+ $$ial($me $+ *,1).addr
}
}
#dehost end

#revenge off
on *:KICK:*: {
if ($knick == $me) {
if (!$msn.ini(kickrj)) { 
var %p $msn.roompass($msn.get($cid,fullroom))
sockwrite -tn msn.server. $+ $cid JOIN $msn.get($cid,fullroom) %p
}
sockwrite -tn msn.server. $+ $cid KICK $msn.get($cid,fullroom) $nick :Revenge Kick
sockwrite -tn msn.server. $+ $cid PROP $msn.get($cid,fullroom) OWNERKEY $msn.pass
sockwrite -tn msn.server. $+ $cid ACCESS $msn.get($cid,fullroom) add OWNER *! $+ $$ial($me $+ *,1).addr
}
}
#revenge end

#guestkicker off
on *:JOIN:#: {
if (> isin $nick) { kick # $nick | access # add DENY >*!*@* }
}
#guestkicker end

thanks for the help guys, it's much appreciated, and welcomed

 

this is kinda what I would like it to do but only to none admins and it doesn't have to clear the host/owner key, and dump the access list, of corse you see the prop for admins to host H and owner O it will not let anyone else who's not on admin host or owner' so that part works right, I would like it to just op those who are supposed to be oped IE admin levels, and deop those who are not on the admin level, no kick or bann, no scrambling the owner or host keys ,just drop them back to participant

 

[ 00:24:11 ] <me/admin> o

[ 00:24:12 ] *bot sets mode: +q me/admin 

[ 00:24:13 ] <me/admin> p

[ 00:24:13 ] *bot sets mode: -q me/admin 

[ 00:24:14 ] *bot sets mode: -o me/admin

 

now using the room pass after turning on the anti host commands

 

[ 00:24:19 ] *me/admin  sets mode: +o  me/admin

[ 00:24:19 ] *bot sets mode: -o me/admin 

[ 00:24:20 ] •bot has cleared host access

[ 00:24:24 ] *me/admin  sets mode: +q me/admin 

[ 00:24:25 ] *bot sets mode: -q me/admin 

[ 00:24:25 ] bot has cleared owner access

[ 00:24:25 ] • bot sets the OWNERKEY property to: ~Îæý^!#)ëà<°ò*&^$"

[ 00:24:25 ] • bot adds owner access: *!botsgatekeeper@GateKeeperPassport$* indefinitely

Edited Dec 29, 2005 6:54 AM by area63