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 

AllProtection.tcl (Stable: v4.8 / Beta: v4.9b4)
Goto page Previous  1, 2, 3 ... 61, 62, 63 ... 88, 89, 90  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
TRaSH
Halfop


Joined: 26 Feb 2003
Posts: 56
Location: #Anime-Supreme

PostPosted: Sat Oct 25, 2008 4:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sat Oct 25, 2008 5:18 pm    Post subject: Reply with quote

What is the ban command you use through ChanServ?
_________________
Follow me on GitHub

- Opposing

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


Joined: 26 Feb 2003
Posts: 56
Location: #Anime-Supreme

PostPosted: Sat Oct 25, 2008 5:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sat Oct 25, 2008 7:30 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
TRaSH
Halfop


Joined: 26 Feb 2003
Posts: 56
Location: #Anime-Supreme

PostPosted: Sun Oct 26, 2008 4:59 am    Post subject: Reply with quote

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
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Oct 26, 2008 10:48 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
kenneal
Voice


Joined: 11 Mar 2007
Posts: 10

PostPosted: Sat Nov 08, 2008 9:52 pm    Post subject: Reply with quote

The link is down, does anybody have a working link?
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Nov 09, 2008 5:37 pm    Post subject: Reply with quote

Yeah, lost my hosting account Razz get the newest version from here. Fixed a few bugs from 4.6b8.
_________________
Follow me on GitHub

- Opposing

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


Joined: 15 Jun 2008
Posts: 49
Location: Moldova

PostPosted: Fri Nov 21, 2008 4:49 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website Yahoo Messenger
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Fri Nov 21, 2008 6:26 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Danik
Halfop


Joined: 15 Jun 2008
Posts: 49
Location: Moldova

PostPosted: Fri Nov 21, 2008 6:44 pm    Post subject: Reply with quote

this code didn't change anything Sad
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Fri Nov 21, 2008 6:48 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Danik
Halfop


Joined: 15 Jun 2008
Posts: 49
Location: Moldova

PostPosted: Fri Nov 21, 2008 6:58 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website Yahoo Messenger
Danik
Halfop


Joined: 15 Jun 2008
Posts: 49
Location: Moldova

PostPosted: Fri Nov 21, 2008 7:06 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website Yahoo Messenger
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sat Nov 22, 2008 7:45 pm    Post subject: Reply with quote

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
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 Support & Releases All times are GMT - 4 Hours
Goto page Previous  1, 2, 3 ... 61, 62, 63 ... 88, 89, 90  Next
Page 62 of 90

 
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