| View previous topic :: View next topic |
| Author |
Message |
asdd1 Voice
Joined: 05 Jul 2008 Posts: 23
|
Posted: Wed Jul 09, 2008 7:23 am Post subject: Blacklist script by Sir_fz |
|
|
[code]<&dd> !addbl n1nj4 aha
-bot- SYNTAX: !addbl <nick>!<user>@<host> [reason] [bantime]
How to make, if i'm set only nick, no <user>@<host>, script will ban host, example:
<user> !addbl n1nj4 haha
* bot sets mode: +b *!*@1.1.1.1 |
|
| Back to top |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Wed Jul 09, 2008 10:16 am Post subject: Re: Blacklist script by Sir_fz |
|
|
| asdd1 wrote: | <&dd> !addbl n1nj4 aha
-bot- SYNTAX: !addbl <nick>!<user>@<host> [reason] [bantime]
How to make, if i'm set only nick, no <user>@<host>, script will ban host, example:
<user> !addbl n1nj4 haha
* bot sets mode: +b *!*@1.1.1.1 |
That is probably because it is best to ban people by their host, as it prevents simply changing nick to gain reentry.
You could try following the instructions and use the following:
| Code: | | !addbl n1nj4!*@* haha |
|
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Wed Jul 09, 2008 2:06 pm Post subject: |
|
|
The script only adds hostmasks into the black list, that's why you can't specify just the nickname. However, if blackl(bansame) is set to 0 then you can choose which ban-type you want the script to ban by changing the blackl(btype) setting. For example if blackl(btype) is set to 2 (*!*@host) then if you type
| Quote: | | !addbl n1nj4!*@* haha |
the bot bans n1nj4's *!*@host instead of the blacklisted banmask. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
loulou7593 Voice
Joined: 08 Apr 2008 Posts: 12
|
Posted: Thu Jun 03, 2010 6:31 pm Post subject: |
|
|
I seek a means while only write
!addbl john
and that blacklist when without being obliged to write
!addbl john*!*@*
cordialement |
|
| Back to top |
|
 |
AzOt Voice
Joined: 26 Oct 2010 Posts: 8
|
Posted: Mon Nov 29, 2010 8:04 am Post subject: |
|
|
hello,
I raise the topic because I encounter a problem with the nickname with special character. When I type !addbl [OrS ]*!*@* it adds the nick \[OrS \]*!*@* and thus the nickname join the show what it does not ban, but just kick and ban the bot poses Like this \[OrS \]*!*@* and hence the nick back each time can someone help me please?
kickban on the blacklist and I vhost kickban what the user is in the record. txt so for that I replace
| Quote: |
putquick "MODE $chan -o +b $nick [set abandoned [blbtype $nick! $ $ UHOST Blackler (BTYPE)]]"
|
by
| Quote: |
putquick "MODE $chan -o +b $nick $blnick"
|
Cordially
ps: Sorry for my English |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Mon Nov 29, 2010 3:44 pm Post subject: |
|
|
Good thing you reported this AzOt, this is apparently a bug that needs to be fixed. A quick fix would be to apply the following changes:
Replace
| Code: | if {$blackl(bansame)} {
putquick "MODE $chan -o+b $nick $ban" |
with
| Code: | if {$blackl(bansame)} {
set ban [string map {\\\\ \\ \\\[ \[ \\\] \]} $ban]
putquick "MODE $chan -o+b $nick $ban" |
and replace
| Code: | if {$blackl(bansame)} {
pushmode $chan -o $nick
pushmode $chan +b $ban |
with
| Code: | if {$blackl(bansame)} {
set ban [string map {\\\\ \\ \\\[ \[ \\\] \]} $ban]
pushmode $chan -o $nick
pushmode $chan +b $ban |
_________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
AzOt Voice
Joined: 26 Oct 2010 Posts: 8
|
Posted: Mon Nov 29, 2010 4:02 pm Post subject: |
|
|
Sir_Fz thank you for responding. I make the changes as indicated but the bot does no further action
ps: sorry for my English |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
|
| Back to top |
|
 |
AzOt Voice
Joined: 26 Oct 2010 Posts: 8
|
Posted: Wed Dec 01, 2010 3:07 am Post subject: |
|
|
| well yes I do .rehash and itself .restart. and I forget to mention that come a time when adding a user such as [reagetton]*!*@* kickban it all: x |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
|
| Back to top |
|
 |
AzOt Voice
Joined: 26 Oct 2010 Posts: 8
|
Posted: Sat Dec 04, 2010 9:14 am Post subject: |
|
|
Sir_Fz thank you I'll test it and I'll keep you posted if beug  |
|
| Back to top |
|
 |
SinSoLe Voice
Joined: 25 Jun 2011 Posts: 3
|
Posted: Sat Jun 25, 2011 2:03 pm Post subject: |
|
|
Hello
I'm using this script for a while, and I think that is great. But I would add a feature:
If I add an entry like nick2!*@* and an user changes his nick to nick2, the bot doesn't nothing. It would be great if script binds nick change events to check if is in blacklist.
For example:
| Code: | <SinSoLe> .addbl nick2!*@*
Guest0001 (ident@host.com) joined #channel
Guest0001 is now known as nick2
Eggdrop sets mode +b *!*@host.com
nick2 was kicked from #channel by Eggdrop
|
I tried to do myself adding "bind nick - * bl:cop", but I don't know how to do. |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Fri Jul 01, 2011 10:01 am Post subject: |
|
|
Hello SinSole, please try this quick solution:
Add this bind
| Code: | | bind nick - * bl:ban |
and replace
| Code: | | proc bl:ban {nick uhost hand chan} { |
with
| Code: | | proc bl:ban {nick uhost hand chan {nn ""}} { |
and inside the proc (the second line) add:
| Code: | if {$nn != ""} {
set nick $nn
} |
This should trigger it on nick changes.
Edit: $nn instead of nn _________________ Follow me on GitHub
- Opposing
Public Tcl scripts
Last edited by Sir_Fz on Sat Jul 02, 2011 2:35 am; edited 1 time in total |
|
| Back to top |
|
 |
SinSoLe Voice
Joined: 25 Jun 2011 Posts: 3
|
Posted: Fri Jul 01, 2011 10:40 am Post subject: |
|
|
Hello Sir_Fz, thanks for your reply.
I did the changes that you posted here, but I get this on partyline:
| Quote: | 16:19:50 <Eggdrop> 01-07 16:19.34> Tcl error [bl:ban]: syntax error in expression "nn != """: variable references require preceding $
16:19:55 <Eggdrop> 01-07 16:19.40> Tcl error [bl:ban]: syntax error in expression "nn != """: variable references require preceding $
16:19:56 <Eggdrop> 01-07 16:19.41> Tcl error [bl:ban]: syntax error in expression "nn != """: variable references require preceding $
16:20:00 <Eggdrop> 01-07 16:19.44> Tcl error [bl:ban]: syntax error in expression "nn != """: variable references require preceding $ |
EDIT: Seems that works changing this | Code: | if {nn != ""} {
set nick $nn
} | with | Code: | | if {$nn != ""} { set nick $nn } |
Thanks for your help, it's a perfect script  |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sat Jul 02, 2011 2:37 am Post subject: |
|
|
Yep, glad you figured it out and glad you like the script. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
|