| View previous topic :: View next topic |
| Author |
Message |
dirty Halfop
Joined: 08 Feb 2013 Posts: 40 Location: Romania
|
Posted: Thu Feb 21, 2013 2:01 pm Post subject: intercepting a ban |
|
|
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 |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Fri Feb 22, 2013 2:19 am Post subject: |
|
|
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 |
|
 |
dirty Halfop
Joined: 08 Feb 2013 Posts: 40 Location: Romania
|
Posted: Fri Feb 22, 2013 6:44 am Post subject: |
|
|
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 |
|
 |
willyw Revered One
Joined: 15 Jan 2009 Posts: 1175
|
Posted: Fri Feb 22, 2013 8:41 am Post subject: |
|
|
| 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 |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Sat Feb 23, 2013 4:48 am Post subject: |
|
|
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 |
|
 |
dirty Halfop
Joined: 08 Feb 2013 Posts: 40 Location: Romania
|
Posted: Sat Feb 23, 2013 5:55 am Post subject: |
|
|
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 |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Sat Feb 23, 2013 9:35 am Post subject: |
|
|
ahc rap, missed the first step. 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 |
|
 |
dirty Halfop
Joined: 08 Feb 2013 Posts: 40 Location: Romania
|
Posted: Sat Feb 23, 2013 10:44 am Post subject: |
|
|
Yes.. you should drink the coffee before reading the forum 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 |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Sat Feb 23, 2013 12:12 pm Post subject: |
|
|
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 |
|
 |
dirty Halfop
Joined: 08 Feb 2013 Posts: 40 Location: Romania
|
Posted: Sat Feb 23, 2013 12:20 pm Post subject: |
|
|
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 |
|
 |
|