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
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.
e
e-force
Voice
Posts: 23
Joined: Tue Jan 04, 2005 7:10 pm

Post by e-force »

Any ideas with my problem?
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

Likely it's a different privmsg being sent, so change your output so you can debug the problem.
S
Serban
Voice
Posts: 3
Joined: Tue Nov 29, 2005 1:50 pm
Location: NASA

Post by Serban »

Hello i have this problem... i tried as you said demond restart and kill bot and start from the begining but its the same everytime...

[21:42:01] [13:41] Tcl error in file 'Wizzard.chan':
[21:42:01] [13:41]
[21:42:01] while executing
[21:42:01] "channel add #blah { chanmode +tn idle-kick 0 stopnethack-mode 0 revenge-mode 0 need-op {} need-invite {} need-key {} need-unban {} need-limit {} flo..."
[21:42:01] (file "Wizzard.chan" line 3)
[21:42:01] [13:41] Creating channel file
[21:42:01] [13:41] No longer supporting channel #blah
[21:42:01] [13:41] Tcl error [::xchannel::color]: no such channel record
[21:42:01] [13:41] Tcl error [::xchannel::caps]: no such channel record
[21:42:01] [13:41] Tcl error [::xchannel::bad]: no such channel record
[21:42:01] [13:41] Tcl error [::xchannel::spam]: no such channel record
[21:42:01] [13:41] Tcl error [::xchannel::color]: no such channel record
[21:42:01] [13:41] Tcl error [::xchannel::caps]: no such channel record
[21:42:01] [13:41] Tcl error [::xchannel::bad]: no such channel record
[21:42:01] [13:41] Tcl error [::xchannel::spam]: no such channel record
[21:42:01] [13:41] No longer supporting channel #blah1
[21:42:01] [13:41] Tcl error [::xchannel::color]: no such channel record
[21:42:01] [13:41] Tcl error [::xchannel::caps]: no such channel record
[21:42:01] [13:41] Tcl error [::xchannel::bad]: no such channel record
[21:42:01] [13:41] Tcl error [::xchannel::spam]: no such channel record
[21:42:01] [13:41] Tcl error [::xchannel::color]: no such channel record
[21:42:01] [13:41] Tcl error [::xchannel::caps]: no such channel record
[21:42:01] [13:41] Tcl error [::xchannel::bad]: no such channel record
[21:42:01] [13:41] Tcl error [::xchannel::spam]: no such channel record
[21:42:01] [13:41] Ignored masks for channel(s): #blah1 #blah
[21:42:01] [13:41] Userfile loaded, unpacking...
IRC is bad for your health.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

eforce: you need to learn string matching rules; if you want to match words anywhere in a sentence, use *word* in your badwords file

serban: delete your chanfile and start over
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

Post by e-force »

demond wrote:eforce: you need to learn string matching rules; if you want to match words anywhere in a sentence, use *word* in your badwords file
Yes, i've already tried this *word*, but when badword is set to *anal* and when someone called banal xchannel get an w:k:b action.
Any idea how to make it work with an example like * badword *?
When i try to set in badwords.txt * badword... - bad things happened. It binds * (everuthing) for badword. I've already tried with some different ways, but they did'nt work.Here is a part of my badword.txt:
  • *kurva*
    *kurvi*
    *putki*
    *putka
    eba
    *kuchka*
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

e-force wrote:Any idea how to make it work with an example like * badword *?
learn regular expressions and set x:other:match to regexp

for example, this will match (case-insensitively) the word foo at the beginning of a sentence, at the end, and separated by white space:

Code: Select all

(?i)(\s|^)foo(\s|$)
(but it won't match foo! and other adjacent punctuation characters; do your homework)
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

Post by e-force »

Problem sloved, it works! Tnx about this help.
b
beasTMan
Voice
Posts: 15
Joined: Sat Dec 30, 2006 11:21 am
Location: Chisinau, Republic of Moldova
Contact:

Post by beasTMan »

so dudes , the script it's ok ? works ? type the link here , please.
#Xtreem @ UnderNet
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

beasTMan wrote:so dudes , the script it's ok ? works ? type the link here , please.
it's on my website, also in the Tcl Archive
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
User avatar
Mausam
Voice
Posts: 2
Joined: Tue Feb 13, 2007 8:47 am

Post by Mausam »

Hello,

First i want to know is there any way to customize global setting rather changing channel by channel?

Second from where i can get its readme file. coz i need complete help regarding this script.

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

Post by demond »

there is no README file; simply open the script in your favourite text editor and read the header - everything is thoroughly explained and should be clear to anyone with decent knowledge of running eggdrop

if after doing that you still don't understand something, ask here and I'll answer; on your first question - you can use the .xchanset command for that
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
User avatar
Mausam
Voice
Posts: 2
Joined: Tue Feb 13, 2007 8:47 am

Post by Mausam »

protecion will automatically start or i have to start by myself? And is their any by default protection setting or i must have to define it?

and another thing the syntex for global setting is...
.xchanset +x:repeat:rate values... is it like that?

I only have to customized these

x:repeat:rate
x:mass:rate
x:mass:duration
x:caps:percent
x:bad:file
x:clone:type
x:clone:count
x:door:stay
x:whois:file
x:whois:count
x:pspam:cycle
x:drone:score
x:lag:threshold
x:limit:slack

OR These too

x:type
x:type:punish
x:type:bantype
x:type:bantime
x:type:reason


very sorry to disturb you but i need it.. thanks

and please tell me the syntex too...

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

Post by demond »

did you read through entire header? I somehow doubt that

if you did, you would've read the following:

Code: Select all

#  DO NOT EDIT this script (even if you know what you are doing ;) 
#  instead, configure it to suit you from bot's party-line by using
#  .chanset command and the following settings (you have to specify any
#  of these only if you need default value changed; to see defaults, use
#  .chaninfo #chan):
and this:

Code: Select all

#  you can also use .xchanset [#channel|*] <commonset> [value]
#  from bot's party-line to set any common setting (except on/off switch)
#  for all offense handlers on a particular channel or all channels
and also:

Code: Select all

#  IMPORTANT: all offense handlers (except mass) are disabled by default
#  to enable particular protection, use .chanset #chan +x:type
all of that is pretty clear, is it not? and gives unambiguous answers to your questions
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
User avatar
DarkRaptor
Voice
Posts: 36
Joined: Sat Apr 15, 2006 2:39 am
Location: Trois-Rivières, Qc

Post by DarkRaptor »

Hi demond,

I'm using your script from a while and as I see, it doesn't check for DCC Send when the bot's clone cycle the chan.

Did I miss something in configuration or it's not in the script ?

If it's not in the script, I think this can be a nice feature to add to this great script :D

I'm using version 4.2

Here the configuration:

Code: Select all

User defined channel flags:
+CService +mc.topic_resynch +mc.dns_bans -mc.dns_bans.exempt.op
-mc.dns_bans.exempt.voice +mc.dns_bans.enforcebans +dieauth -x:limit
+x:stats +x:drone +x:door -x:flood
+x:pspam +x:clone -x:spam +x:repeat
-x:whois -x:bad +x:caps -x:color
User defined channel settings:
x:drone:bantype: 2   x:drone:bantime: 15   x:door:bantype: 2   x:door:bantime: 5   
x:flood:bantype: 2   x:flood:bantime: 840   x:pspam:bantype: 2   x:pspam:bantime: 60   
x:clone:bantype: 2   x:clone:bantime: 20   x:spam:bantype: 2   x:spam:bantime: 120   
x:repeat:bantype: 2   x:repeat:bantime: 5   x:whois:bantype: 2   x:whois:bantime: 20   
x:bad:bantype: 2   x:bad:bantime: 10   x:caps:bantype: 2   x:caps:bantime: 5   
x:color:bantype: 2   x:color:bantime: 5   x:clone:type: 2   x:clone:count: 3   
x:pspam:cycle: 180   x:whois:count: 100   x:mass:duration: 5   x:drone:score: 85   
x:lag:threshold: 8   x:door:stay: 8   x:stats:top: 5   x:limit:slack: 5   
x:caps:percent: 85   
User defined channel strings:
mc.dns_bans.exempt.flags: {}
x:drone:punish: k:b
x:drone:reason: {Possible Drone Detected. (This scan is based on the degree of randomness of that nick & IdentD)}
x:door:punish: b
x:door:reason: {Next time, visit us longer}
x:flood:punish: b
x:flood:reason: Flooding
x:pspam:punish: w:k:b
x:pspam:reason: {Unsolicited Spam}
x:clone:punish: b
x:clone:reason: {No Clones}
x:spam:punish: k:b
x:spam:reason: {Spam Detected!}
x:repeat:punish: w:k:b
x:repeat:reason: {Stop Repeating}
x:whois:punish: b
x:whois:reason: {Bad /whois information}
x:bad:punish: w:k:b
x:bad:reason: {Bad Words}
x:caps:punish: w:k:b
x:caps:reason: {You don't need to cry!}
x:color:punish: w:k:b
x:color:reason: {Don't use color}
x:whois:file: badwhois.txt
x:mass:rate: 1001:1
x:repeat:rate: 6:30
x:other:match: string
x:bad:file: badwords.txt
(Sorry if my english is bad. It's not my native language)
DarkRaptor @ irc.undernet.org
Post Reply