This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

little big problem

Old posts that have not been replied to for several years.
Locked
S
STiRB

little big problem

Post by STiRB »

ok.
i have a channel on quakenet where everyone gets op.
now i want the bot to remove bans that are set by ops who dont have the
friendly flag +f.
is this possible ?
any help would be much appreciated :D
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

When it should remove them? When the ban is placed or when?
Once the game is over, the king and the pawn go back in the same box.
b
bobjuh
Master
Posts: 268
Joined: Wed Oct 03, 2001 8:00 pm
Location: Netherlands
Contact:

Post by bobjuh »

If you want want that poeple who you don't trust ban other people just don't op them.

imho free ops channel are lame
User avatar
TeDDyBeeR
Voice
Posts: 21
Joined: Tue Sep 02, 2003 7:11 am

Post by TeDDyBeeR »

Well it's possible

Make from the following code a seperated *.tcl file
en load it as you normely load scripts :

Code: Select all

#### 
# Unban bans set by users without +f on the
# in global or channel user flags
####

# Set below the channels where the bot must unban bans that
# set by users who have not +f in ther flags
set chkchans "#channel1 #channel2 #channel3"

bind mode - * docheckbanright

proc docheckbanright {nick host handle chan modechg vic} {
   global chkchans
   if {[lsearch -glob [string tolower $chkchans] [string tolower $chan]] > -1} {
      if {[strlwr $modechg] == "+b"} {
         if {![matchattr $handle f|f $chan]} {
            putserv "mode $chan -b $vic"            
         }
      }
   }
}

putlog "Unban Bans that setted by non +f users is loaded"
Have funn with the script, if you have Q's i will hear it trou my PM on this forum :)

regards,
TeDDyBeeR
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Code: Select all

bind mode - "* +b" rmban:notf

proc rmban:notf {nick uhost hand chan mode vict} {
 if {![matchattr $hand f|f $chan] && [botisop $chan]} {
  putserv "MODE $chan -b $vict"
 }
}
this should do it. (removes the ban immediatly if the banner is not +f)
f
firepac
Voice
Posts: 31
Joined: Wed Jun 18, 2003 5:41 am
Location: Queensland, Australia

Post by firepac »

Why would you give everyone ops?????

Just asking for problems!!!!!!
User avatar
TeDDyBeeR
Voice
Posts: 21
Joined: Tue Sep 02, 2003 7:11 am

Post by TeDDyBeeR »

Sir_Fz:

Code:
bind mode - "* +b" rmban:notf

proc rmban:notf {nick uhost hand chan mode vict} {
if {![matchattr $hand f|f $chan] && [botisop $chan]} {
putserv "MODE $chan -b $vict"
}
}

this should do it. (removes the ban immediatly if the banner is not +f)
It's nice, but then it works on evry channel where the bot is, so, let him/her choice by script in what channel it must do !!!!
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Post by GodOfSuicide »

TeDDyBeeR wrote:
Sir_Fz:

Code:
bind mode - "* +b" rmban:notf

proc rmban:notf {nick uhost hand chan mode vict} {
if {![matchattr $hand f|f $chan] && [botisop $chan]} {
putserv "MODE $chan -b $vict"
}
}

this should do it. (removes the ban immediatly if the banner is not +f)
It's nice, but then it works on evry channel where the bot is, so, let him/her choice by script in what channel it must do !!!!
just change the bind to

Code: Select all

bind mode - "#channel * +b" rmban:notf 
and it works just on #channel
User avatar
TeDDyBeeR
Voice
Posts: 21
Joined: Tue Sep 02, 2003 7:11 am

Post by TeDDyBeeR »

GodOfSuicide wrote:
TeDDyBeeR wrote:
Sir_Fz:

Code:
bind mode - "* +b" rmban:notf

proc rmban:notf {nick uhost hand chan mode vict} {
if {![matchattr $hand f|f $chan] && [botisop $chan]} {
putserv "MODE $chan -b $vict"
}
}

this should do it. (removes the ban immediatly if the banner is not +f)
It's nice, but then it works on evry channel where the bot is, so, let him/her choice by script in what channel it must do !!!!
just change the bind to

Code: Select all

bind mode - "#channel * +b" rmban:notf 
and it works just on #channel
You are right :0
But then when the bot is in 10 chans and he must do it in 5 of them, you need to set 5 binds :)
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Not exactly, just add your *search* part or a slight change of it and works fine :)
Once the game is over, the king and the pawn go back in the same box.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

i was just giving a basic script. He can do whatever he wants with it :P
S
STiRB

Post by STiRB »

thnx!
it worx now.
Locked