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 

X ban/unban Script.
Goto page 1, 2  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
samhain
Halfop


Joined: 03 Jan 2007
Posts: 77

PostPosted: Sun Jan 07, 2007 7:12 am    Post subject: X ban/unban Script. Reply with quote

Hi I do not know why TCL coders haven't made a script yet which has the ability to punish an user through X, i mean on advertise/flood/spam/invite/badwords/badnick the bot bans through X and then removes it through X through a setting of a time in the TCL file.... it's a very nice idea to use undernet X because X bans can be maximum 300 and on undernet if the eggdrops bans manually then the banlist becomes full after 45 bans so please get me such kind of a script I really need it.
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Jan 07, 2007 8:05 am    Post subject: Reply with quote

AllProtection4.6b7.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
samhain
Halfop


Joined: 03 Jan 2007
Posts: 77

PostPosted: Sun Jan 07, 2007 9:22 am    Post subject: Reply with quote

what's there is it the script I need I mean I have tried that TCL but it only works manually does it work through X?
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Jan 07, 2007 10:27 am    Post subject: Reply with quote

Yes, version 4.6b7 supports banning through X when banlist is full.
Quote:
# Do you want the bot to ban through services when banlist is full? (0: no ; 1: yes)
set banthruX(do) 0

# If banthruX is 1, set the command here to ban through services:
set banthruX(cmd) "privmsg X :ban %chan %ban %btime %level %reason"

# If banthruX is 1, set here the default level to be used on all channels
lappend ap:udefs {ap:level 75}

I haven't got any feedback yet on whether this feature is working or not so if you try it and tell us that'd be great Very Happy
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
samhain
Halfop


Joined: 03 Jan 2007
Posts: 77

PostPosted: Mon Jan 08, 2007 11:38 am    Post subject: Reply with quote

sure I'm gonna try this, and where do I set the maximum number of bans in the eggdrop so that the number I set in the eggdrop is considered as the banlist full in the eggdrop.
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Mon Jan 08, 2007 8:41 pm    Post subject: Reply with quote

eggdrop.conf:
Quote:
# Set here the maximum number of bans you want the bot to set on a channel.
# Eggdrop will not place any more bans if this limit is reached. Undernet
# currently allows 45 bans, IRCnet allows 30, EFnet allows 100, and DALnet
# allows 100.
set max-bans 30

_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
silverboy
Halfop


Joined: 11 Feb 2006
Posts: 55

PostPosted: Wed Jun 13, 2007 6:34 am    Post subject: Reply with quote

Quote:
I haven't got any feedback yet on whether this feature is working or not so if you try it and tell us that'd be great


it works pretty well, but after the chan banlist got full i found the bot was pretty slow in banning via X. but it does work Smile
_________________
proxyz..proxyz...i see everywher... O_o
Back to top
View user's profile Send private message Visit poster's website
Zircon
Op


Joined: 21 Aug 2006
Posts: 191
Location: Montreal

PostPosted: Wed Jun 13, 2007 7:18 am    Post subject: Reply with quote

Hi all

The feature of banning through X on Undernet is completely functionnal, i confirm. By the way, in eggdrop.conf, i set max-bans to 0, so all the bans can be made through X even if the banlist isnt full.

Althougt banning through X is slower than before, coz AllProtection kick the offender first, and after send the ban command to X. Since banning through X makes the offender being kicked automatically by X, it may be better and faster to send only one command which is the ban, instead of kick + ban.

Example :

[19:08] <Zircon> ban Offender!*@* OUT 2400 499
[19:08] #culture: mode change '+b Offender!*@*' by X!cservice@undernet.org
[19:08] Offender kicked from #culture by X: (Zircon) OUT

Is it possible to change the behavior of the banning process when it s made through X, so only the ban command is used, insted of Kick then Ban ?

Thanks Sir_Fz for this Great Script
Back to top
View user's profile Send private message
iamdeath
Master


Joined: 11 Feb 2005
Posts: 323
Location: *HeLL*

PostPosted: Sat Jun 16, 2007 3:54 am    Post subject: Reply with quote

samhain either you use X or eggdrops bans they're the same because on Undernet channel banlist is max of 45 so it doesnt matter if X can hold 300 bans after 45 bans X wont be able to set a ban on the active bans it will only kick. Using X or eggdrop bans does'nt matter, what I will suggest is to use Eggdrops bans because it will be faster than sending request to X and then X proceeds.

Thanks
iamdeath
_________________
|AmDeAtH @ Undernet


Death is only the *Beginning*...
Back to top
View user's profile Send private message Visit poster's website
Zircon
Op


Joined: 21 Aug 2006
Posts: 191
Location: Montreal

PostPosted: Sat Jun 16, 2007 4:44 am    Post subject: Reply with quote

Hello iamdeath

X isn't affected by the the limit of 45 bans, means that even if they are already 45 active bans, X can still add 300 others bans. So in total, u can put 345 bans, 300 through X, and 45 by regular users. The limit of 45 concern only bans not made through X.
Back to top
View user's profile Send private message
iamdeath
Master


Joined: 11 Feb 2005
Posts: 323
Location: *HeLL*

PostPosted: Sat Jun 16, 2007 7:31 am    Post subject: Reply with quote

I beg to refuse you on that sir, please check and then let me know. I am sure about my statement.

Thanks
_________________
|AmDeAtH @ Undernet


Death is only the *Beginning*...
Back to top
View user's profile Send private message Visit poster's website
silverboy
Halfop


Joined: 11 Feb 2006
Posts: 55

PostPosted: Sat Jun 16, 2007 9:32 am    Post subject: Reply with quote

Quote:
after 45 bans X wont be able to set a ban on the active bans it will only kick


X bans are also made via the chan banlist and if banned via X chanbanlist can hold 300 bans...
_________________
proxyz..proxyz...i see everywher... O_o
Back to top
View user's profile Send private message Visit poster's website
iamdeath
Master


Joined: 11 Feb 2005
Posts: 323
Location: *HeLL*

PostPosted: Sat Jun 16, 2007 9:51 am    Post subject: Reply with quote

I do accept that X can hold 300 bans I am not refusing that, what I am saying is that when channels active banlist will reach 45 then X will not be able to ban the user because it will already exceed the number of allowed bans. So what happen will be, X will only kick it won't be able to place a ban it will only Kick. Yes, in X's database that ban will exsist but as soon as the channels banlist get lower than 45 then X will be able to set ban.

Read this:

Zagreb.HR.Eu.UnderNet.org u2.10.12.10 dioswkgx biklmnopstvrD bklov
WHOX WALLCHOPS WALLVOICES USERIP CPRIVMSG CNOTICE SILENCE=15 MODES=6 MAXCHANNELS=30 MAXBANS=45 NICKLEN=12 are supported by this server
MAXNICKLEN=15 TOPICLEN=160 AWAYLEN=160 KICKLEN=160 CHANNELLEN=200 MAXCHANNELLEN=200 CHANTYPES=#& PREFIX=(ov)@+ STATUSMSG=@+ CHANMODES=b,k,l,imnpstrDd CASEMAPPING=rfc1459 NETWORK=UnderNet are supported by this server

Thanks
iamdeath
_________________
|AmDeAtH @ Undernet


Death is only the *Beginning*...
Back to top
View user's profile Send private message Visit poster's website
Zircon
Op


Joined: 21 Aug 2006
Posts: 191
Location: Montreal

PostPosted: Sat Jun 16, 2007 4:36 pm    Post subject: Reply with quote

Hello iamdeath

I m positive about what i said, u can have up to 345 active bans at the same time, max of 45 bans done by users, plus max 300 bans done through X. X as a service, isnt limited by MAXBANS, which apply only to bans done bu regular OPs. I tested many times, and u can do the same. Right now i m having 50 active bans, 45 that i put myself, and 5 that i put through X.
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sat Jun 16, 2007 9:45 pm    Post subject: Reply with quote

A simple solution is to contact an IRCOp/Administrator of the Network you both apparently share and settle this once and for all.

These forums deal specifically with eggdrop and Tcl not IRCD's and their "quirks". Smile
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
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 -> Script Requests All times are GMT - 4 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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