egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

intercepting a ban

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
dirty
Halfop


Joined: 08 Feb 2013
Posts: 40
Location: Romania

PostPosted: Thu Feb 21, 2013 2:01 pm    Post subject: intercepting a ban Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Fri Feb 22, 2013 2:19 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
dirty
Halfop


Joined: 08 Feb 2013
Posts: 40
Location: Romania

PostPosted: Fri Feb 22, 2013 6:44 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Fri Feb 22, 2013 8:41 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Sat Feb 23, 2013 4:48 am    Post subject: Reply with quote

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:

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.
Back to top
View user's profile Send private message
dirty
Halfop


Joined: 08 Feb 2013
Posts: 40
Location: Romania

PostPosted: Sat Feb 23, 2013 5:55 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Sat Feb 23, 2013 9:35 am    Post subject: Reply with quote

ahc rap, missed the first step. Rolling Eyes 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.
Back to top
View user's profile Send private message
dirty
Halfop


Joined: 08 Feb 2013
Posts: 40
Location: Romania

PostPosted: Sat Feb 23, 2013 10:44 am    Post subject: Reply with quote

Yes.. you should drink the coffee before reading the forum Smile i specifically said:
Quote:

1. add a channel ban in the eggdrop

_________________
come to the dark side.. I have cookies!
WwW.BotZone.TK
Back to top
View user's profile Send private message Visit poster's website
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sat Feb 23, 2013 12:12 pm    Post subject: Reply with quote

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, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
dirty
Halfop


Joined: 08 Feb 2013
Posts: 40
Location: Romania

PostPosted: Sat Feb 23, 2013 12:20 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber