Skip to content
MSN

Anti Host

A TG007 community discussion started by shanespen.

Discussion 4 posts
Page 1 of 1
Open
Topic #6628 · 4 published posts · 579 views

I am needing help making this code work.

I want it to dehost users if they are hosted, if they are not in the aop list.

Say Saiyen gets hosted by King, but Saiyen isn't in the aOP list, so my script dehosts Saiyen.

This is the code I have now

on *:OP:#:{
 if ($nick != $me) && ($me isop $chan) && ($readini(aOP.ini,aOP,$address($opnick,1)) == $null) {
   mode $chan -o $opnick
   access $chan clear owner
   access $chan add owner $address($me,1)
 }
}

Edited May 13, 2006 9:17 PM by shanespen

try $ini instead of $readini

try $ini instead of $readini

 

Well, I got it right before you posted, I had another on*:oP: above it that I didn't see, and a slight error in the code, but thanks anyways!

try something like ..

 


on *@:OP:#:{
 if (!$ini(aOP.ini,aOP,$address($opnick,1))) && ($nick != $mnick) {
 .raw mode # -o $opnick
 .raw access # clear owner $lf access # add owner $address($me,1)
 }
}