| View previous topic :: View next topic |
| Author |
Message |
TRaSH Halfop
Joined: 26 Feb 2003 Posts: 56 Location: #Anime-Supreme
|
Posted: Sat Oct 25, 2008 4:31 pm Post subject: |
|
|
i'm getting a weird error
when trying to use chanserv to kick/ban
the following happens
[22:22:45] [Sir^Killalot] [22:22] dkshd_pball kicked from #Anime-Supreme by Sir^Killalot: Text repeating detected. (3 repeats in 1.121 secs) :: [Sat Oct 25 22:22:42 2008] - Banned 0 minutes ·3762·
[22:22:45] [Sir^Killalot] [22:22] -ChanServ (service@rizon.net)- Nick *!*@Rizon-FF4200E8.red83-165.mundo-r.com isn't currently in use.
changing it not to use chanserv is places the ban correct. |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sat Oct 25, 2008 5:18 pm Post subject: |
|
|
What is the ban command you use through ChanServ? _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
TRaSH Halfop
Joined: 26 Feb 2003 Posts: 56 Location: #Anime-Supreme
|
Posted: Sat Oct 25, 2008 5:54 pm Post subject: |
|
|
| Code: |
# If banthruX is 1/2, set the command here to ban through services:
set banthruX(cmd) "privmsg ChanServ :ban %chan %ban %btime %level %reason"
|
| Code: |
[23:53:18] -ChanServ- Syntax: BAN [#channel [nick [reason]]]
|
|
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sat Oct 25, 2008 7:30 pm Post subject: |
|
|
Ok, so you're supposed to specify a nickname instead of ban-mask. Unfortunately, AllProtection does not currently support that. You can modify the script to support using nicknames by applying the following changes:
Replace %ban with %nick in your banthruX(cmd) setting
| Code: | | set banthruX(cmd) "privmsg ChanServ :ban %chan %nick %reason" | (I removed the %bantime and %reason because they're not supported by your service's syntax)
Replace the following line in proc mapXcmd
| Code: | | string map [list %reason $k %level $level %btime $time %ban $ban %chan $c] $cmd |
with
| Code: | | string map [list %reason $k %level $level %btime $time %ban $ban %nick $n %chan $c] $cmd |
_________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
TRaSH Halfop
Joined: 26 Feb 2003 Posts: 56 Location: #Anime-Supreme
|
Posted: Sun Oct 26, 2008 4:59 am Post subject: |
|
|
| Sir_Fz wrote: |
(I removed the %bantime and %reason because they're not supported by your service's syntax)
|
reason is supported
| Code: |
[09:59:10] -ChanServ- Syntax: BAN [#channel [nick [reason]]]
|
|
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sun Oct 26, 2008 10:48 am Post subject: |
|
|
I meant %level instead of %reason, but that shouldn't affect you (also the setting is correct). _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
kenneal Voice
Joined: 11 Mar 2007 Posts: 10
|
Posted: Sat Nov 08, 2008 9:52 pm Post subject: |
|
|
| The link is down, does anybody have a working link? |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sun Nov 09, 2008 5:37 pm Post subject: |
|
|
Yeah, lost my hosting account get the newest version from here. Fixed a few bugs from 4.6b8. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
Danik Halfop
Joined: 15 Jun 2008 Posts: 49 Location: Moldova
|
Posted: Fri Nov 21, 2008 4:49 am Post subject: |
|
|
| Code: | [15:19:21] * InGeRaSa` was kicked by |1C (Advertising detected. (* http://*) :: [Fri Nov 14 16:19:20 2008] - Banned 180 minutes ·249·)
[15:19:21] * InGeRaSa` (~Ingerasa@InGeRaSs.users.undernet.org) has joined #999.md
[15:19:21] * |1C sets mode: +b *!*@InGeRaSs.users.undernet.org |
it has to ban first, and after that to kick the user
............
I think the error is Here ...
| Code: | "kb" {
foreach {jn ju} $nl {
if {[onchan $jn $c] && ![punishing k:$jn:$c]} {
putquick "KICK $c $jn :[clonemap [mapall $km $c $bti] [incr cc]]"
}
if {[punishing b:[set bm [masktype $jn!$ju $bty]]:$c]} {continue}
if {![info exists arb($bm)]} {
if {$banthruX(do)==1 || ($banthruX(do) && [llength [chanbans $c]] >= ${max-bans})} {
putquick [mapXcmd $banthruX(cmd) $jn $ju $c [clonemap [mapall $km $c $bti] $cc] $bty $bti]
} {
queue $c $bm
if {$bti > 0 && [istimer "pushmode $c -b $bm"] == ""} {
timer $bti [list pushmode $c -b $bm]
}
set arb($bm) 1
}
} |
|
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Fri Nov 21, 2008 6:26 pm Post subject: |
|
|
This has been requested before and I promised to add it, unfortunately haven't got the time nor the motivation to do it. So if you want it, replace the "kb" scope (from "kb" { .... }) with:
| Code: | "kb" {
foreach {jn ju} $nl {
if {![punishing b:[set bm [masktype $jn!$ju $bty]]:$c]} {
if {![info exists arb($bm)]} {
if {$banthruX(do)==1 || ($banthruX(do) && [llength [chanbans $c]] >= ${max-bans})} {
putquick [mapXcmd $banthruX(cmd) $jn $ju $c [clonemap [mapall $km $c $bti] $cc] $bty $bti]
} {
queue $c $bm
if {$bti > 0 && [istimer "pushmode $c -b $bm"] == ""} {
timer $bti [list pushmode $c -b $bm]
}
set arb($bm) 1
}
}
}
if {[onchan $jn $c] && ![punishing k:$jn:$c]} {
putquick "KICK $c $jn :[clonemap [mapall $km $c $bti] [incr cc]]"
}
}
} |
_________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
Danik Halfop
Joined: 15 Jun 2008 Posts: 49 Location: Moldova
|
Posted: Fri Nov 21, 2008 6:44 pm Post subject: |
|
|
this code didn't change anything  |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Fri Nov 21, 2008 6:48 pm Post subject: |
|
|
Are you using the ban queue?
| Quote: | # Do you want your bot to queue bans? set here the time in seconds before dumping bans:
# NOTE: 0 means the bot will set the ban immediately
# The modes-per-line setting in eggdrop.conf is the number of modes allowed per command.
set apqueue(time) 1 |
If yes, then you should take into consideration that the bot sends bans to the channel every $apqueue(time) seconds; so if you want it to immediately set the ban in the channel, change apqueue(time) to 0. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
Danik Halfop
Joined: 15 Jun 2008 Posts: 49 Location: Moldova
|
Posted: Fri Nov 21, 2008 6:58 pm Post subject: |
|
|
i'm using eggdrop 1.6.19 : downloaded from www.egghelp.org
I checked... and i don't see this ban queue .. in bot's conf |
|
| Back to top |
|
 |
Danik Halfop
Joined: 15 Jun 2008 Posts: 49 Location: Moldova
|
Posted: Fri Nov 21, 2008 7:06 pm Post subject: |
|
|
| hmmm...it ban's the user .. but only through X undernet ... if X is'nt on the channel it doesnt ban .... it just kick the user .... and thats's all |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sat Nov 22, 2008 7:45 pm Post subject: |
|
|
| Danik wrote: | i'm using eggdrop 1.6.19 : downloaded from www.egghelp.org
I checked... and i don't see this ban queue .. in bot's conf |
The setting is in the script, and not in your Eggdrop's configuration file. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
|