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.
Old posts that have not been replied to for several years.
S
STiRB
Post
by STiRB » Tue Sep 02, 2003 11:23 pm
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
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Wed Sep 03, 2003 1:15 am
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.
bobjuh
Master
Posts: 268 Joined: Wed Oct 03, 2001 8:00 pm
Location: Netherlands
Contact:
Post
by bobjuh » Wed Sep 03, 2003 3:21 am
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
TeDDyBeeR
Voice
Posts: 21 Joined: Tue Sep 02, 2003 7:11 am
Post
by TeDDyBeeR » Wed Sep 03, 2003 4:18 am
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
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Wed Sep 03, 2003 4:20 am
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)
firepac
Voice
Posts: 31 Joined: Wed Jun 18, 2003 5:41 am
Location: Queensland, Australia
Post
by firepac » Wed Sep 03, 2003 5:46 am
Why would you give everyone ops?????
Just asking for problems!!!!!!
TeDDyBeeR
Voice
Posts: 21 Joined: Tue Sep 02, 2003 7:11 am
Post
by TeDDyBeeR » Wed Sep 03, 2003 5:51 am
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 !!!!
GodOfSuicide
Master
Posts: 463 Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria
Post
by GodOfSuicide » Wed Sep 03, 2003 6:13 am
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
TeDDyBeeR
Voice
Posts: 21 Joined: Tue Sep 02, 2003 7:11 am
Post
by TeDDyBeeR » Wed Sep 03, 2003 6:28 am
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
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Wed Sep 03, 2003 6:33 am
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.
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Wed Sep 03, 2003 12:34 pm
i was just giving a basic script. He can do whatever he wants with it
S
STiRB
Post
by STiRB » Wed Sep 03, 2003 3:32 pm
thnx!
it worx now.