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.

intercepting a ban

Help for those learning Tcl or writing their own scripts.
Post Reply
d
dirty
Halfop
Posts: 40
Joined: Fri Feb 08, 2013 2:33 pm
Location: Romania
Contact:

intercepting a ban

Post by dirty »

Hello I need some help regarding a channel or a global ban. I`ll try and give you an example because to be honest I don`t really know how to explain this..

1. add a channel ban in the eggdrop
2. eggdrop bans the user
3. someone removes the channel ban
4. the user enters the channel again
5. the bot bans the user again (because the ban is still active in his db)

At step 5 is there a way I can make the eggdrop check some information about the ban before it bans the user? Something like "bind EVNT - prerehash" that`s accuring before the rehash.. actually that bind would of been grate if it would of worked for bans as well.
come to the dark side.. I have cookies!
WwW.BotZone.TK
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

operator sets mode #channel +b *!*@naughty.user.com
(bot stores in his bans list this ban)

another_operator lifts this ban from the channel:
another_operator sets mode #channel -b *!*@naughty.user.com

the naughty user rejoins the channel, now the bot set the ban again and kick the user ass off the channel. This is what you where looking for?
Once the game is over, the king and the pawn go back in the same box.
d
dirty
Halfop
Posts: 40
Joined: Fri Feb 08, 2013 2:33 pm
Location: Romania
Contact:

Post by dirty »

caesar you just wrote exactly what i wrote in the 5 stepts... did you even read my post? i asked at step 5 when that user comes back in the channel can you tell me is there a proc.. a bind.. something that will intercept the ban to check some information before baning that user? And never mind.. i figure it out.. someone please close this post.
come to the dark side.. I have cookies!
WwW.BotZone.TK
w
willyw
Revered One
Posts: 1209
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

dirty wrote: .. i figure it out..
The nice thing to do, would be to describe what you figured out. That way, should someone else ever need the info, they might find it here.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

I've mentioned that so I would be 100% sure I got what you where looking after, no trolling intended if that's what you imply.

Anyway, something like:

Code: Select all

bind MODE - "% +b" catch:ban
catches the +b modes and you can do whatever you want in there.
Once the game is over, the king and the pawn go back in the same box.
d
dirty
Halfop
Posts: 40
Joined: Fri Feb 08, 2013 2:33 pm
Location: Romania
Contact:

Post by dirty »

Well.. you still didn`t get what i asked.. bind MODE catches the BAN after it`s added on the channel it dosn`t intercept the ban before it occurs but thanks for trying to help. Actually the interception can be done with "bind OUT"
come to the dark side.. I have cookies!
WwW.BotZone.TK
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

ahc rap, missed the first step. :roll: guess will have to drink my coffee prior to browsing the forums lol

for some reason was under the impression that the ban at step 1 was set by some user, hence my previous post asking if I fully understood what you wanted.
Once the game is over, the king and the pawn go back in the same box.
d
dirty
Halfop
Posts: 40
Joined: Fri Feb 08, 2013 2:33 pm
Location: Romania
Contact:

Post by dirty »

Yes.. you should drink the coffee before reading the forum :) i specifically said:
1. add a channel ban in the eggdrop
come to the dark side.. I have cookies!
WwW.BotZone.TK
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Have you had a look at the "OUT" binding in recent eggdrops? Returning 1 for a "queued"-status event, causes eggdrop to drop it alltogether (havn't tried it myself though).
NML_375
d
dirty
Halfop
Posts: 40
Joined: Fri Feb 08, 2013 2:33 pm
Location: Romania
Contact:

Post by dirty »

I haven`t got to test it yet i`m working on some other tcls but yes i think it will drop the modes witch were on the queue but if you put them back in the queue that will be fine i guess
come to the dark side.. I have cookies!
WwW.BotZone.TK
Post Reply