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.

newchanban does'nt ban

Old posts that have not been replied to for several years.
Locked
T
Torte86
Voice
Posts: 8
Joined: Sun Jan 16, 2005 5:02 pm

newchanban does'nt ban

Post by Torte86 »

HI

I wrote a script that contains newchanban
When the proc where it is used is triggered,the mathing user is getting kicked but there's no ban set
heres the line
newchanban $::s_chan *!*$ident@* $::botnick $::kicktext $::bantime

I used the same script in other channels and it works

i got a little script to check if the banlist is full
it isn't!
the bot also adds the ban to its internal banlist
but it doesn't set the ban in the channel
so i think there must be an option in chanset but i don't know which one.

please help me
thx

greetz Torte86
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

maybe its enforce bans ?
XplaiN but think of me as stupid
T
Torte86
Voice
Posts: 8
Joined: Sun Jan 16, 2005 5:02 pm

Post by Torte86 »

" enforcebans When a ban is set, kick people who are on the channel and match the ban?"

???
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

i am not sur but .. show the settings for the channel maybe ..
XplaiN but think of me as stupid
T
Torte86
Voice
Posts: 8
Joined: Sun Jan 16, 2005 5:02 pm

Post by Torte86 »

Other modes:
-inactive +statuslog -secret +shared
+greet -seen +cycle +dontkickops
+protectops -protectfriends -revenge -revengebot
-bitch -autoop -autovoice +nodesynch
-enforcebans -dynamicbans +userbans -autohalfop
-protecthalfops
+dynamicexempts +userexempts +dynamicinvites +userinvites
flood settings: chan ctcp join kick deop nick
number: 0 0 0 0 0 0
time : 1 1 1 1 1 1
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

no i meanth open the chan file and show that or you could compare the settings with the other channels and see what is different, then kill the bot and edit the file and restart it ....

or at least find out what is missing :p, as long as it is a dynamic setting you could edit the file but if its in the config file then it won't matter cause from the start the bot fires up again, you will reset the old settings and your back from where you started..
XplaiN but think of me as stupid
T
Torte86
Voice
Posts: 8
Joined: Sun Jan 16, 2005 5:02 pm

Post by Torte86 »

there's nothing different
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

show the script .. cause if its channel specific ..
XplaiN but think of me as stupid
T
Torte86
Voice
Posts: 8
Joined: Sun Jan 16, 2005 5:02 pm

Post by Torte86 »

the newchanbanline is in my first post
and the vars need to be correct cause the user is kicked and the ban is set to the internal banlist of the eggdrop and gets removed after the right time
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Torte86 wrote:the newchanbanline is in my first post
and the vars need to be correct cause the user is kicked and the ban is set to the internal banlist of the eggdrop and gets removed after the right time
If the channels banlist isn't full the bot's banlist could be full. Check maxbans and other variables related to this in the eggdrops .conf file.

Try using this and lets see if it places the ban and does the kick:

putserv "MODE $::s_chan +b *!*$ident@*"
putserv "KICK $::s_chan $nick :$::kicktext"
timer $::bantime "pushmode $::s_chan -b *!*$ident@*"
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
T
Torte86
Voice
Posts: 8
Joined: Sun Jan 16, 2005 5:02 pm

Post by Torte86 »

wuhoo he did it :)

thx !!

maybe you got know an idea what the problem is
but if not,i will use this

greetz Torte86
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Well, actually to be honest I didn't have an idea of what the problem was, because it seemed unlikely not to ban when every var for newchanban is correct.

However putserv mode, kick are likely the same. But they will not ban and kick the user again if for instance the ban is removed and the user joins again provided, that only occurs before the bantime expires.

But for your case this should generally be okay. :)
Last edited by awyeah on Sun Jan 16, 2005 10:20 pm, edited 1 time in total.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
T
Torte86
Voice
Posts: 8
Joined: Sun Jan 16, 2005 5:02 pm

Post by Torte86 »

hm for my wishes,that is better ;)

but i used putquick instead of putserv

thx again
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Yeah putquick is generally fast. If you use the -next switch it would also be more faster. But what can we define fast in this, faster a couple of microseconds? heh :)
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
T
Torte86
Voice
Posts: 8
Joined: Sun Jan 16, 2005 5:02 pm

Post by Torte86 »

my script is a litte bit longer
between join and ban we're 5 seconds when i tested it before 1 hour
so putquick is the right for me i think :)
Locked