This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Universal channel script

Support & discussion of released scripts, and announcements of new releases.
Post Reply
h
honeybee
Halfop
Posts: 80
Joined: Sun Jan 01, 2006 12:42 pm

Post by honeybee »

demond i have two questions in your spam proc you used:
proc spam {nick uhost hand chan args} {
variable colore
fixargs chan text $args
if {[isbotnick $chan]} {return}
if {![channel get $chan x:spam]} {return}
regsub -all $colore $text {} text
regsub -all -nocase $chan $text {} text
if {[regexp {(?i)(http://|www\.|irc\.|\s#\w|^#\w)} $text]} {
punish $nick $uhost $hand $chan spam
}
}
why didnt you escaped special char in http:// and i tried to add few more checks it didnt work.
if {[regexp {(?i)(http://|www\.|irc\.|\s#\w|^#\w|\.com|044)} $text]} {
where; .com is anything with mysite.com becasue sometimes they do not use http://* or www.* and 044 my country code
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

obviously you aren't very familiar with regular expressions; I'd suggest you go here and learn more before trying to modify any RE
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
h
honeybee
Halfop
Posts: 80
Joined: Sun Jan 01, 2006 12:42 pm

Post by honeybee »

ok, thanks for mentioning the link but can you explain this please?

Code: Select all

if {[isbotnick $chan]} {return}
this is a wrong expression cause,
isbotnick <nick>
Returns: 1 if the nick matches the botnick; 0 otherwise
Module: server
...and its everywhere in the script
User avatar
dusk
Halfop
Posts: 91
Joined: Sun Mar 06, 2005 7:25 pm
Location: Belgium

Post by dusk »

honeybee wrote:ok, thanks for mentioning the link but can you explain this please?

Code: Select all

if {[isbotnick $chan]} {return}
this is a wrong expression cause,
isbotnick <nick>
Returns: 1 if the nick matches the botnick; 0 otherwise
Module: server
...and its everywhere in the script
duh!! whats's wrong about it?? you want to filter it out and let the bot react on it's own chatter?? btw isbotnick is an expression on its own it doesn't work like isbotnick <nick> .


GRTZ
me likes me eggie :P
h
honeybee
Halfop
Posts: 80
Joined: Sun Jan 01, 2006 12:42 pm

Post by honeybee »

I guess you should read before posting, posting without understanding is a waste of time.
User avatar
dusk
Halfop
Posts: 91
Joined: Sun Mar 06, 2005 7:25 pm
Location: Belgium

Post by dusk »

Euh...aren't you the one that doesn't understand??

if {[isbotnick $chan]} {return} <-- nothing wrong about that

spammer != botnick (so returns 0): proc goes on
spammer == botnick (so returns 1): proc returns


that should be verry basic ...
me likes me eggie :P
h
honeybee
Halfop
Posts: 80
Joined: Sun Jan 01, 2006 12:42 pm

Post by honeybee »

you didnt read the post again.
isbotnick <nick>
Returns: 1 if the nick matches the botnick; 0 otherwise
Module: server
so, this is wrong

Code: Select all

if {[isbotnick $chan]} {return}
instead,

Code: Select all

if {[isbotnick $nick]} {return}
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

honeybee, what you apparently don't understand is that $chan is a Tcl variable which - in that particular context it's being used - can contain not only a channel name but also nickname - i.e. a channel name OR nickname - so there is nothing wrong with [isbotnick $chan] and it's necessary
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
h
honeybee
Halfop
Posts: 80
Joined: Sun Jan 01, 2006 12:42 pm

Post by honeybee »

ok got it thanks.
d
demon
Voice
Posts: 12
Joined: Thu Dec 14, 2006 4:43 pm

Post by demon »

hmm didnt understand something.. that script to find spammers etc create a clone and join it on the chans to check ? or cycle the chans itself ? if is the 1st is fantastic!!!

Thanks
User avatar
dusk
Halfop
Posts: 91
Joined: Sun Mar 06, 2005 7:25 pm
Location: Belgium

Post by dusk »

demon wrote:hmm didnt understand something.. that script to find spammers etc create a clone and join it on the chans to check ? or cycle the chans itself ? if is the 1st is fantastic!!!

Thanks
It creates a forkclone that cycles the chan, the bot itself doesn't cycle, only the clone.
me likes me eggie :P
d
demon
Voice
Posts: 12
Joined: Thu Dec 14, 2006 4:43 pm

Post by demon »

ok FANTASTIC! :)

That clone take random nicks/idents/realname etc? or you can set them also somewhere?

Thanks
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

no, it takes bot's altnick and realname
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
e
e-force
Voice
Posts: 23
Joined: Tue Jan 04, 2005 7:10 pm

badword

Post by e-force »

about that badword detect in public chat.
When someone write a badword in the channel, bot isn`t get an action if the word is in some text.Like an example i will give this:

<badman> mybadword
<bot> k:b
----------
<badman> this is my badword
<bot> do nothing
Is that problem in me?

Bot settings:
+x:bad
x:other:match: string
s
starpossen
Op
Posts: 139
Joined: Tue Jan 10, 2006 1:08 am

Post by starpossen »

I know this is kinda old but:
Alchera wrote:
Sheldon wrote:is there anyway.. to make the warning a red colour in the main chat.... then everyone sees it
Not always appropriate as that in itself will fill the channel with rubbish.

It would also appear some of your users ignore private messages (as I do). To have the warnings sent via notice (no one ignores them) replace:

Code: Select all

"w" {putserv "privmsg $nick :\002\0034$reason"}
with

Code: Select all

"w" {putserv "notice $nick :\002\0034$reason"}
I change it, but somehow it still privmsg eventhough I changed it to notice, I rehashed, didn't help, I restarted, didn't help.
Any ideas why?

ps. Great script btw.
Post Reply