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 ... 77, 78, 79 ... 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
Spectre
Voice


Joined: 16 Aug 2009
Posts: 15

PostPosted: Mon Apr 05, 2010 2:38 pm    Post subject: Reply with quote

well i wish it was sometimes i get it loadsss in some secs hope any way to sort that..
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Mon Apr 05, 2010 4:57 pm    Post subject: Reply with quote

@Luminous The best suggestion I can give you is upgrade to 4.6

@Spectre The same suggestion applies to you. However, to fix that problem, fix your script's configuration (you have invalid settings). The settings must be the same as documented.
_________________
Follow me on GitHub

- Opposing

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


Joined: 12 Feb 2010
Posts: 146

PostPosted: Mon Apr 05, 2010 5:45 pm    Post subject: Reply with quote

Sir_Fz: I actually figured you would tell me that. Wink

Before I do... the reason I have kept 4.5, was because in this script, I found out how to disable the ctcp-version reply appendment, but when I looked through the 4.6 one, I did not see it. I'm pretty anal about my ctcp replies, lol. Did you disable that already? If not, where is it in the script? Thanks.
Back to top
View user's profile Send private message
Spectre
Voice


Joined: 16 Aug 2009
Posts: 15

PostPosted: Wed Apr 07, 2010 4:46 pm    Post subject: Reply with quote

have a problem with swearing part of the tcl

set bwords(global) {
*[censored]*
"*bastard *"

these are on the list for example

i did try some of them but while it work for [censored] n fag it doesnt work for bastard n [censored] same for the words i added anyone tested this ?
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Wed Apr 07, 2010 5:21 pm    Post subject: Reply with quote

@Spectre:
This would be due to the glob-style matching done by "string match", try using "*\[censored\]*" instead.
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Spectre
Voice


Joined: 16 Aug 2009
Posts: 15

PostPosted: Wed Apr 07, 2010 5:24 pm    Post subject: Reply with quote

oh the forums filtered that word it was fu ck lol
well the tcl doesnt work for the words already added in it weid.. some works some doesnt..
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Wed Apr 07, 2010 5:27 pm    Post subject: Reply with quote

Ohh, I see...
Could be the space you've got between bastard and the trailing * then?
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Wed Apr 07, 2010 6:00 pm    Post subject: Reply with quote

@Luminous Yeah I just made it a little bit "harder" to find that line in the script but with a little digging you can easily find it. I won't guide you on how to remove it Laughing However, a quick hack would be setting ctcp-version after loading the script.

@Spectre Once the script has been loaded, adding words to the lists inside the script won't affect the actual lists the bot uses (since these are stored in a separate file generated by the script when ran). You must always use the '.ap:add' DCC command to add new elements to the list(s) (documented in the script).
_________________
Follow me on GitHub

- Opposing

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


Joined: 16 Aug 2009
Posts: 15

PostPosted: Wed Apr 07, 2010 6:02 pm    Post subject: Reply with quote

ty for the command will try that but then it doesnt work for the list u got in the tcl as these example i gave
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Thu Apr 08, 2010 8:23 am    Post subject: Reply with quote

It's like this: The examples in the script are added to the global bwords list. Now, if you add new words to the same list (global) then these words will be appended to the existing ones. However, when you create a channel-specific list the script ignores the words in the global list and will only consider words from the channel-specific list for that channel.

Basically global lists are for channels that do not have channel-specific lists.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Thu Apr 08, 2010 12:26 pm    Post subject: Reply with quote

@Sir_Fz: Just had a look at that part of the code, I suppose you could splice the global list with the channel specific using concat and lsort.

Code:
if {![info exists bwords($chan)]} { set l $bwords(global) } { set l $bwords($chan) }

The above would be changed like this:
Code:
if {![info exists bwords($chan)]} {
  set l $bwords(global)
} else {
  set l [lsort -unique [concat $bwords(global) $bwords($chan)]]
}


A word of caution though, concat is very sensitive to list structures, and if not all arguments are proper lists, the result is not guarantee'd to be a valid list.
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Thu Apr 08, 2010 3:07 pm    Post subject: Reply with quote

Yes you're right nml375, I should have implemented it that way from the beginning. Thanks for your suggestion, I'll definitely apply it in the final release.
_________________
Follow me on GitHub

- Opposing

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


Joined: 16 Aug 2009
Posts: 15

PostPosted: Fri Apr 09, 2010 8:54 am    Post subject: Reply with quote

not sure but i found out yesterday and today the bot resetting all settings back to default in the tcl and is that a bug or something i do wrong ?
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Fri Apr 09, 2010 9:35 am    Post subject: Reply with quote

When you set an invalid setting on a channel, the script automatically resets it to the default settings defined in the script. Follow the documentation. For example if one of the settings is supposed to be {+/- <pmethod> <ban-time> <ban-type>} and you set it to any different format, the script resets it to initial default.
_________________
Follow me on GitHub

- Opposing

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


Joined: 24 Jun 2008
Posts: 15

PostPosted: Mon May 10, 2010 6:33 am    Post subject: Reply with quote

Can the random drones be made to K-Line them when they connect to the network?
Back to top
View user's profile Send private message
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 ... 77, 78, 79 ... 88, 89, 90  Next
Page 78 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