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 

Universal channel script
Goto page Previous  1, 2, 3 ... 13, 14, 15
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Thu Apr 19, 2007 5:16 am    Post subject: Reply with quote

no, that's not an existing feature

but you can easily implement it yourself by extending the spam detection regexp in proc handler:
Code:

if {[regexp {(?i)(http://|www\.|irc\.|\s#\w|^#\w|\001DCC)} $text]} {

_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
DarkRaptor
Voice


Joined: 15 Apr 2006
Posts: 36
Location: Trois-Rivières, Qc

PostPosted: Thu Apr 19, 2007 11:53 am    Post subject: Reply with quote

Thanks demond

Work Perfectly
_________________
DarkRaptor @ irc.undernet.org
Back to top
View user's profile Send private message
amorpheous
Voice


Joined: 19 May 2007
Posts: 7

PostPosted: Mon May 21, 2007 2:30 pm    Post subject: Reply with quote

Hi,

I've been using this script for a while and it's great.

However, I'd like to enable caps protection for my channel, but when I first installed the script I tried it and it kept kicking and banning people for posting smilies like ":D" as they are uppercase characters, which is a bit over the top. Is there a way to make the script ignore things like that and if so, how?

Thanks in advance.

-amorpheous
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sun May 27, 2007 12:49 am    Post subject: Reply with quote

the caps handler shouldn't trigger action against phrases consisting of less than 4 characters:
Code:

   if {$len > 3 && 100*$n/$len >= $pct} {
      punish $nick $uhost $hand $chan caps
   }

so single Very Happy won't be punished; 2 smilies won't be punished either, as $pct by default is 70% (and 2 capital D's account for 50%); 3 ot more smilies will be punished, but such emoticon overuse is lame anyway
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
amorpheous
Voice


Joined: 19 May 2007
Posts: 7

PostPosted: Sun Nov 11, 2007 9:14 pm    Post subject: Reply with quote

Bug report:
http://forum.egghelp.org/viewtopic.php?p=78313

Anyone know how to fix?

*edit* Oh, and the caps problem was resolved. Thanks.
Back to top
View user's profile Send private message
amorpheous
Voice


Joined: 19 May 2007
Posts: 7

PostPosted: Sun Nov 25, 2007 7:01 pm    Post subject: Reply with quote

Is this script still being maintained? I would really like a fix for the above bug.

Thanks.
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Mon Nov 26, 2007 2:02 am    Post subject: Reply with quote

.. and have you done as Sir_Fz suggested in his last post?
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
amorpheous
Voice


Joined: 19 May 2007
Posts: 7

PostPosted: Mon Nov 26, 2007 5:51 am    Post subject: Reply with quote

Yes, I've searched for statements explicitly returning 1, but only found one function that does that and it doesn't use pubm. Unfortunately, my experience with tcl is limited, so if anyone could look into this for me, I'd be very grateful.

Thanks.
Back to top
View user's profile Send private message
e-force
Voice


Joined: 04 Jan 2005
Posts: 23

PostPosted: Tue May 27, 2008 12:16 pm    Post subject: BUG Reply with quote

Hello! I have a problem with my eggdrop and xchannel.tcl. I have searched for a problem like mine, but found nothing. That's why i am asking here in this post about it. Here it is:
When i try to start the eggdrop with included xchannel.tcl, the bot has crashed. If i remove the chan file and start the bot again, it runs fine. After adding the channel trought dcc ".+chan #chan", save the result and restart the bot it crash again. I have core dump and debug logif anyone need. Here is part of the command "./eggdrop -n my.conf.
Code:

[19:03] Creating x:limit:slack (type 2)
[19:03] Creating x:caps:percent (type 2)
[19:03] Creating x:bad:file (type 3)
[19:03] * Last context: tclhash.c/684 [Tcl proc: source $::xchannel::script;#, param:  $_event1]
[19:03] * Please REPORT this BUG!
[19:03] * Check doc/BUG-REPORT on how to do so.
[19:03] * Wrote DEBUG
[19:03] * SEGMENT VIOLATION -- CRASHING!
Segmentation fault (core dumped)

I am using Freebsd (amd64) 7.0-release, tcl version 8.5 and eggdrop 1.6.19.
Thanks in advice!
Back to top
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Thu Jan 15, 2009 1:23 am    Post subject: xchannel Reply with quote

Just trying out xchannel.

1.) Does anybody still use it? I see this thread hasn't had a post in a long time....

2.) How long is the offense period, before it resets? That is, in the w,k.b sequence, if a channel user gets kicked, how much time must go by with no more offenses, for this user to be back to the beginning of the sequence, and on his next offense get a warning, and not a ban?

Thanks
Back to top
View user's profile Send private message
user
 


Joined: 18 Mar 2003
Posts: 1452
Location: Norway

PostPosted: Thu Jan 15, 2009 5:03 am    Post subject: Reply with quote

amorpheous wrote:
I would really like a fix for the above bug.

add
Code:
return 0
as the last line within the proc called "mass" (line 520 in version 4.2)
EDIT: you may have to add it to the end of the proc named "punish" too (line 430)

Mausam wrote:
1.) Does anybody still use it? I see this thread hasn't had a post in a long time....

2.) How long is the offense period, before it resets? That is, in the w,k.b sequence, if a channel user gets kicked, how much time must go by with no more offenses, for this user to be back to the beginning of the sequence, and on his next offense get a warning, and not a ban?

1) I've no idea

2) I'm not familiar with the script, so I have no idea what these 4 things are, but the expiration times (in minutes) seem to be:

offenses: 720, repeats: 5, clones: 60, whoises: 240 (at line 174 in version 4.2)


(PS: I just skimmed the code (i didn't run it), so there could be things i missed)
_________________
Have you ever read "The Manual"?
Back to top
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Thu Jan 15, 2009 3:08 pm    Post subject: Reply with quote

user wrote:
amorpheous wrote:
I would really like a fix for the above bug.

add
Code:
return 0
as the last line within the proc called "mass" (line 520 in version 4.2)
EDIT: you may have to add it to the end of the proc named "punish" too (line 430)


Nice! I didn't ask this, but was sure glad to see you'd replied to it!
I too have the "can't log with +p, or use .console +p" problem. After reading a post here that it was likely caused by a script, I found that it was xchannel.
Gave up on ever being able to use those two +p flags in those places, as I don't know anything about .tcl.
Then I saw this reply from you! Smile

I've tried what you've said.
It does not work, 100%. Sad

Here is what I've discovered, if it will help you further analyze it:
(I don't use all the funtions in xchannel)
If it turn on +x:repeat , that kills the use of +p in console. Can't see normal chan anymore.
If I turn off repeat monitoring, with .chanset -x:repeat, THEN I can see normal chat, when I'm in the partyline and with +p on my console.

When I use + or - on x:caps , no effect. I can see normal chat, just like I'm supposed to be able to, with the +p flag on console.

Those are the two parts I use, and apparently the problem is not in x:caps, but is in x:repeat.
I hope that is useful info to you, and that you will feel like taking another look at it for us.
If there are other tests, or whatever that I can do, I'd like to help however I can. Just direct me.

Quote:

Mausam wrote:
1.) Does anybody still use it? I see this thread hasn't had a post in a long time....

2.) How long is the offense period, before it resets? That is, in the w,k.b sequence, if a channel user gets kicked, how much time must go by with no more offenses, for this user to be back to the beginning of the sequence, and on his next offense get a warning, and not a ban?

1) I've no idea

2) I'm not familiar with the script, so I have no idea what these 4 things are, but the expiration times (in minutes) seem to be:

offenses: 720, repeats: 5, clones: 60, whoises: 240 (at line 174 in version 4.2)


I will have to experiment, I think - to try to figure out what time applies to which controls.
In other words, I'm not understanding fully what you've said. Smile

Quote:

(PS: I just skimmed the code (i didn't run it), so there could be things i missed)



Thank you for your time in this stuff.
Back to top
View user's profile Send private message
user
 


Joined: 18 Mar 2003
Posts: 1452
Location: Norway

PostPosted: Thu Jan 15, 2009 9:12 pm    Post subject: Reply with quote

willyw wrote:
I've tried what you've said.
It does not work, 100%. Sad


Add "return 0" to the end of the following procs:
punish (line 430), clone (line 458), repeat (line 484) and mass (line 520) ... I'm too tired to read the rest of the script to make more sense of the timing stuff right now...let's hope I at least solved the logging problem Smile
_________________
Have you ever read "The Manual"?
Back to top
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Fri Jan 16, 2009 8:27 pm    Post subject: Reply with quote

user wrote:
willyw wrote:
I've tried what you've said.
It does not work, 100%. Sad


Add "return 0" to the end of the following procs:
punish (line 430), clone (line 458), repeat (line 484) and mass (line 520) ... I'm too tired to read the rest of the script to make more sense of the timing stuff right now...let's hope I at least solved the logging problem Smile


Unfortunately, bot computer is down for hw changes, etc. Hopefully it will be back up in a day or two. Looking forward to making those changes then, plus anything else you come up with in the mean time. Smile

While I know just about zilch of .tcl, is it possible that you could explain to me what to look for in the script? I'd do the reading and looking, and get back to you with whatever I've found.... if that would help.

Other question: are there any possible 'side effects' than might happen, due to the addition of these "return 0" lines? Is there anything that maybe I should keep an eye out for?


Thanks.



edit: Jan 18 Have just tried it, with the new edits. Briefly tested.
Seems to work with regards to the repeat monitoring!
We can use repeat monitoring now. Smile Thanks.

Any more comments on this, or the other things
mentioned above?

Thanks again. Smile
Back to top
View user's profile Send private message
FireWarrior
Voice


Joined: 28 Oct 2008
Posts: 19

PostPosted: Mon Mar 02, 2009 12:31 am    Post subject: pspam error in xchannel.tcl v4.2 by demond Reply with quote

Hello.
I need help with an error I get when setting up pspam in xchannel.tcl v4.2. I’m trying the script for the first time, and am providing the details below:
1. To activate the cycler bot I type:

Code:

.chanset #MyChannel+x:pspam
Successfully set modes { +x:pspam  } on #MyChannel.
.chanset #MyChannelx:pspam:cycle 10
Successfully set modes { x:pspam:cycle { 10 } } on #MyLair.


2. After a while I get the following error message at 10 min intervals :

Code:

Tcl error [::xchannel::timer]: DNS lookup failed


3. I get two types of results when I do .set errorInfo. Sometimes I get:

Error 1.

Code:

Currently: DNS lookup failed
 Currently:     while executing
 Currently: "connect $server $port"
 Currently:     (procedure "::xchannel::timer" line 13)
 Currently:     invoked from within
 Currently: "::xchannel::timer $_time1 $_time2 $_time3 $_time4 $_time5"


At other times I get:

Error 2.

Code:

Currently: can't unset "idx": no such variable
Currently:     while executing
Currently: "unset idx"


I hope someone can help me with this, I’d be much obliged.
Thanking you all in advance,
Regards.
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 ... 13, 14, 15
Page 15 of 15

 
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