Skip to content
Buzzen Chat Network

Anti Owner And Multiple Scripts

A TG007 community discussion started by nullpanther.

Discussion 7 posts
Page 1 of 1
Open
Topic #11219 · 7 published posts · 1,635 views

I run a buzzen with with another set of people we run multiple scripts mainly hybrid flash and soulfly anywho we have had problems with out chatters issuing hammers without permission i have this snippet here to stop this

 

 

 

menu channel {
  Anti Status
  .Anti Owner ( $+ $group(#antiowner) $+ )
  .$iif($group(#antiowner) == on,$style(2),$style(0)) On: .enable #antiowner | echo -a 0,12Anti-Owner $+ 0,94On
  .$iif($group(#antiowner) == off,$style(2),$style(0)) Off: .disable #antiowner | echo -a 0,12Anti-Owner $+ 0,4Off
  .Anti Host ( $+ $group(#antihost) $+ )
  .$iif($group(#antihost) == on,$style(2),$style(0)) On: .enable #antihost | echo -a 0,12Anti-Host $+ 0,94On
  .$iif($group(#antihost) == off,$style(2),$style(0)) Off: .disable #antihost | echo -a 0,12Anti-Host $+ 0,4Off
}

#antiowner off
on *:OWNER:#:{
  if ($me isowner $chan) {
    if ($opnick == $me ) halt {
      if ($nick == $me) halt {
        else mode $chan -q $opnick 
        msg $chan Sorry $replace($nick,>,Guest_) $+ , only I set who becomes OWNER in this room
        access $chan delete OWNER $nick
        access $chan delete OWNER $address($nick,1)
      }
    }
  }
}
#antiowner end

#antihost off
on *:oP:#:{
  if ($me isop $chan) {  
    if ($opnick == $me ) halt {
      if ($nick == $me) halt {
        else mode $chan -o $opnick 
        msg $chan Sorry $replace($nick,>,Guest_) $+ , only I set who becomes HOST in this room.
        access $chan delete HOST $nick
        access $chan delete HOST $address($nick,1)
      }
    }
  }
}
#antihost end

 

 

But this has one downfall it will only allow my script to issue hammers and i need it to allow the other two scripts to issue hammers to the chatters along with mine as we all have different hosts lists. Any help?

 

*Edit by X-Fusion -- Code tags added.

Edited Sep 23, 2008 1:23 AM by X-Fusion

add the users that you will allow to op others to a level and halt if nick is in that level

Get information about ircWx here

With SoulFly you can use the allowed list. You will need to load the 'sfb_prot.ini' file.

 

 

Then begin your events with:

 

 

if ($hget(prot,$+(all.,$gettok($address,1,64)))) { return }

 

 

 

#antiowner off
on !.*:OWNER:#:{
  if ($opnick == $me ) || ($hget(prot,$+(all.,$gettok($address,1,64)))) { return }
  mode $chan -q $opnick | msg $chan Sorry $replace($nick,>,Guest_) $+ , only I set who becomes OWNER in this room
  access $chan delete OWNER $nick | access $chan delete OWNER $address($nick,1)
}
#antiowner end

 

 

Notice the changes I made?

Edited Sep 23, 2008 9:57 PM by Travis

ok somehow i gave the impression i actuall knew what i was doing lol can ya dumb it down cause i just copied the script not write it

Mainly it wasn't working because you were halting commands, and it couldn't move on to the other commands. The coding was wrong, but try this...

 

menu channel {
  Anti Status
  .Anti Owner ( $+ $group(#antiowner) $+ )
  .$iif($group(#antiowner) == on,$style(2),$style(0)) On: .enable #antiowner | echo -a 0,12Anti-Owner $+ 0,94On
  .$iif($group(#antiowner) == off,$style(2),$style(0)) Off: .disable #antiowner | echo -a 0,12Anti-Owner $+ 0,4Off
  .Anti Host ( $+ $group(#antihost) $+ )
  .$iif($group(#antihost) == on,$style(2),$style(0)) On: .enable #antihost | echo -a 0,12Anti-Host $+ 0,94On
  .$iif($group(#antihost) == off,$style(2),$style(0)) Off: .disable #antihost | echo -a 0,12Anti-Host $+ 0,4Off
}

#antiowner off
on *:OWNER:#:{
  if ($me isowner $chan) {
    if ($opnick == $me ) halt
    elseif ($nick == $me) halt
    else {
      mode $chan -q $opnick
      msg $chan Sorry $replace($nick,>,Guest_) $+ , only I set who becomes OWNER in this room
      access $chan delete OWNER $nick
      access $chan delete OWNER $address($nick,1)
    }
  }
}
#antiowner end

#antihost off
on *:oP:#:{
  if ($me isop $chan) {  
    if ($opnick == $me ) halt
    elseif ($nick == $me) halt
    else {
      mode $chan -o $opnick
      msg $chan Sorry $replace($nick,>,Guest_) $+ , only I set who becomes HOST in this room.
      access $chan delete HOST $nick
      access $chan delete HOST $address($nick,1)
    }
  }
}
#antihost end

I dont think he was having issues with the code, he just wanted to have an allowed list added. Yeah War, when people script like that it bugs me,. but mIRC seems to take it. It looks so bass ackwArds! But mIRC doesn't care... It's still the wrong way!! lol

 

 

Read up on if, elseif & else...

 

if (comparison) { commands }

 

 

^^^^^^^^^^^^^^^^^^^

 

That's correct syntax.

 

if ($me !isop $chan) { halt }

^this is right

 

 

if ($me !isop $chan) halt {

^this is wrong (I dont care what mIRC says) :P

 

 

 

lol, agreed. :lolwave: