| View previous topic :: View next topic |
| Author |
Message |
Spectre Voice
Joined: 16 Aug 2009 Posts: 15
|
Posted: Mon Apr 05, 2010 2:38 pm Post subject: |
|
|
| well i wish it was sometimes i get it loadsss in some secs hope any way to sort that.. |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Mon Apr 05, 2010 4:57 pm Post subject: |
|
|
@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 |
|
 |
Luminous Op
Joined: 12 Feb 2010 Posts: 146
|
Posted: Mon Apr 05, 2010 5:45 pm Post subject: |
|
|
Sir_Fz: I actually figured you would tell me that.
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 |
|
 |
Spectre Voice
Joined: 16 Aug 2009 Posts: 15
|
Posted: Wed Apr 07, 2010 4:46 pm Post subject: |
|
|
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 |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Wed Apr 07, 2010 5:21 pm Post subject: |
|
|
@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 |
|
 |
Spectre Voice
Joined: 16 Aug 2009 Posts: 15
|
Posted: Wed Apr 07, 2010 5:24 pm Post subject: |
|
|
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 |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Wed Apr 07, 2010 5:27 pm Post subject: |
|
|
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 |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Wed Apr 07, 2010 6:00 pm Post subject: |
|
|
@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 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 |
|
 |
Spectre Voice
Joined: 16 Aug 2009 Posts: 15
|
Posted: Wed Apr 07, 2010 6:02 pm Post subject: |
|
|
| 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 |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Thu Apr 08, 2010 8:23 am Post subject: |
|
|
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 |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Thu Apr 08, 2010 12:26 pm Post subject: |
|
|
@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 |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Thu Apr 08, 2010 3:07 pm Post subject: |
|
|
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 |
|
 |
Spectre Voice
Joined: 16 Aug 2009 Posts: 15
|
Posted: Fri Apr 09, 2010 8:54 am Post subject: |
|
|
| 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 |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Fri Apr 09, 2010 9:35 am Post subject: |
|
|
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 |
|
 |
Casey952 Voice
Joined: 24 Jun 2008 Posts: 15
|
Posted: Mon May 10, 2010 6:33 am Post subject: |
|
|
| Can the random drones be made to K-Line them when they connect to the network? |
|
| Back to top |
|
 |
|