| View previous topic :: View next topic |
| Author |
Message |
Spoilt Voice
Joined: 10 Aug 2005 Posts: 5
|
Posted: Wed Aug 10, 2005 9:58 pm Post subject: Whats wrong? -set... |
|
|
| Code: |
set drache_cmd "!drache"
set drachestats_cmd "!drachestats"
set drachen {
{Drache ist doof!
}
{Drache ist dumm!
}
{Ich mag keine Drachen!
}
{Ich bin Drachentoeter!
}
{Drache stinkt!
}
{Drache sind feiglinge
}
{Drachen stinken, Drachen miefen, darum lasst uns ihre hintern stiefeln
}
{Drache sind nicht gut!
}
{Drache sind flamer!
}
{Drache sind sharer!
}
{Drache sind warmduscher!
}
{Drache sind unnuetz!
}
{Drache sind cheater!
}
{Drache sind schlecht bestueckt!
}
{Drache sind schlecht!
}
{Drache sind nicht gut!
}
{Drache sind nicht schoen!
}
{Drache sind nicht haesslich!
}
{Drache sind Wunderkerzen-Feuerwerker!
}
{Drache sind Nicht-das-Messer-Ablecker!
}
{Drache sind Sich-vor-Aufregung-in-die-Hosen-Macher!
}
{Drache sind Koks-von-den-Geldscheinen-Abkratzer!
}
{Drache sind Nicht-neben-der-Freundin-Furzer!
}
{Drache sind T-Shirt-Luefter!
}
{Drache sind Flaeschchen-Trinker!
}
{Drache sind Warteschleifen-Musik-Mitsummer!
}
{Drache sind Jede-Woche-die-Unterhosen-Wechsler!
}
{Drache sind Schlips-mit-zwei-Knoten-Binder!
}
{Drache sind Haehnchen-nur-durcherhitzt-Esser!
}
{Drache sind Jeep-Safari-Pfuetzen-Umfahrer!
}
{Drache sind Dreimal-taeglich-Zaehneputzer!
}
{Drache sind Faszinierend-Finder!
}
{Drache sind der-Frau-keinen-Orgasmus-Bereiter!
}
{Drache sind Grundgesetz-Besitzer!
}
{Drache sind Mutter-Soehnchen!
}
{Drache sind Beifalls-Applaudierer!
}
{Drache sind Titanic-Mitheuler!
}
{Drache sind Frohes-Fest-Wuenscher!
}
{Drache sind Scheinbart-Rasierer!
}
{Drache sind Sofort-zum-Arzt-Renner!
}
{Drache sind Schutzglas-Schweisser!
}
{Drache sind Bauspar-Sparer!
}
{Drache sind Gewinnspiel-Teilnehmer!
}
{Drache sind Duschhauben-Traeger!
}
{Drache sind Gleichberechtigungs-Schwafler!
}
{Drache sind Praktikanten-Schoner!
}
{Drache sind Am-Feierabend-an-Arbeit-Denker!
}
{Drache sind Verwendungszweck-Ausfueller!
}
{Drache sind Im-Winter-Scheibenwischer-Wegklapper!
}
{Drache sind In-Unterwaesche-Solarium-Lieger!
}
{Drache sind Gymnastik-Mitmacher!
}
{Drache sind Leergut-Spueler!
}
{Drache sind Unterm-Schrank-Staubsauger!
}
{Drache sind Hemd-in-den-Schluepfer-Stecker!
}
{Drache sind Alufolien-Wiederverwender!
}
{Drache sind Tuetenwein-Trinker!
}
{Drache sind Saucen-Entfetter!
}
{Drache sind Gluecksrad-Mitrater!
}
{Drache sind Schluckauf-Unterdruecker!
}
{Drache sind Disketten-Beschrifter!
}
{Drache sind Handschuh-Eiskratzer!
}
{Drache sind Luft-Gittarist!
}
{Drache sind Am-Gelaender-Festhalter!
}
{Drache sind Duftkerzen-Benutzer!
}
{Drache sind Neuwagen-Kilometer-Schoner!
}
{Drache sind Rechtsschutz-Versicherer!
}
{Drache sind Diesel-Handschuh-Tanker!
}
{Drache sind Gluehbirnenwechsel-Sicherungs-Herausschrauber!
}
{Drache sind Regen-Kombi-Radler!
}
{Drache sind Entziehungskur-Teilnehmer!
}
{Drache sind Im-Reformhaus-Kaeufer!
}
{Drache sind Club-Med-Animations-Mitmacher!
}
{Drache sind Decke-bis-zum-Kinn-Zieher!
}
{Drache sind Haklefeucht-Benutzer!
}
{Drache sind Pass-am-Zoll-Bereithalter!
}
{Drache sind Lehrer-Kind!
}
{Drache sind Betroffenheits-Schwaller!
}
{Drache sind Mittags-Zaehneputzer!
}
{Drache sind Auf-dem-Schiessplatz-Ohrstoepsel-Traeger!
}
{Drache sind Email-Archivierer!
}
{Drache sind Hustensaft-Schmuggler!
}
{Drache sind Badeschuh-Laeufer!
}
{Drache sind Bei-Glatteis-Fahrrad-Absteiger!
}
{Drache sind Brief-mit-Briefoeffner-oeffner!
}
{Drache sind Eincremer!
}
{Drache sind Eine-Stunde-am-Cola-Rumnippler!
}
{Drache sind Entlaufene-Katzen-Fahnder!
}
{Drache sind Fair-Play-Spieler!
}
{Drache sind Fettfrei-Kaese-Esser!
}
{Drache sind Feuerloescher-Besitzer!
}
{Drache sind Gefriergut-maschinell-Einschweisser!
}
{Drache sind Hand-in-Schritt-Halter!
}
{Drache sind Hand-vor-dem-Mund-Gaehner!
}
{Drache sind Hartei-Verleumder!
}
{Drache sind Hast-mal'n-Kaugummi-Frager!
}
{Drache sind Heimlich-Peep-Gucker!
}
{Drache sind Kalte-Fuesse-Bekommer!
}
{Drache sind Keine-Raubkopien-Benutzer!
}
{Drache sind Kirchensteuer-Zahler!
}
{Drache sind Klarsicht-Huellen-Verwender!
}
{Drache sind Kondom-gegen-das-Licht-Halter!
}
{Drache sind Kopfnetz-Traeger!
}
{Drache sind Leichtkugel-Bowler!
}
{Drache sind Kurzhaar-Foener!
}
{Drache sind Minenfeld-Ausweicher!
}
{Drache sind Pincode-auf-EC-Karte-Schreiber!
}
{Drache sind Nicht-Warmduscher-ABC-Schauer!
}
{Drache sind Nieselregen-Schirm-Aufspanner!
}
{Drache sind Nicht-zufrieden-sein-und-trotzdem-Trinkgeld-Geber!
}
{Drache sind Platzkarten-rechtzeitig-Besorger!
}
{Drache sind Raus-ins-Gruene-Fahrer!
}
{Drache sind Readme-Leser!
}
{Drache sind Reformhaus-Einkaeufer!
}
{Drache sind Riesenrad-Fahrer!
}
{Drache sind Rueckhaltlos-Aufklaerer!
}
{Drache sind Schlimm?-Frager!
}
{Drache sind Microsoft-Aktienbesitzer!
}
{Drache sind Milchreis-Bubi!
}
{Drache sind Schnitten-fuer-Arbeit-Schmierer!
}
{Drache sind Sofort-Abspueler!
}
{Drache sind Spinnen-aengstler!
}
{Drache sind Tankdeckel-Abschliesser!
}
{Drache sind Tourist-Office-Gaenger!
}
{Drache sind Traubenkern-Ausspucker!
}
{Drache sind Viagra-Schlucker!
}
{Drache sind Vor-kalte-Dusche-Angsthaber!
}
{Drache sind Vorstrafen-im-Lebenslauf-nicht-Angeber!
}
{Drache sind Woerter-mit-Bindestrichen-Vebinder!
}
{Drache sind Zauberhaft-Finder!
}
{Drache sind Coffeinloser-Kaffeetrinker!
}
{Drache sind Samstags-zum-Baecker-Geher!
}
{Drache sind Bertelsmann-Buchclub-Mitglied!
}
{Drache sind Ein-Pfennig-zuviel-Tanker!
}
{Drache sind Weiss-und-Buntwaesche-Sortierer!
}
{Drache sind Brusthaar-Rasierer!
}
{Drache sind AGB-Leser!
}
{Drache sind Kalorien-Zaehler!
}
{Drache sind Heizdecken-Lieger!
}
{Drache sind Merkzettel-Schreiber!
}
{Drache sind Feuilleton-Leser!
}
{Drache sind Chef-Tuer-leise-Zumacher!
}
{Drache sind Teletubbie-Zurueck-Winker!
}
{Drache sind Falschrum-in-die-Drehtuer-Reinlaufer!
}
{Drache sind Milchkaffee-Trinker!
}
{Drache sind Hustensirup-Trinker!
}
{Drache sind Gebrauchsanweisungs-Leser!
}
{Drache sind To-Do-Listenschreiber!
}
{Drache sind Grippe-Vorsorgeimpfer!
}
{Drache sind Detlev-Heisser!
}
{Drache sind Zimmerpflanzen-Giesser!
}
{Drache sind Seifen-Buecker!
}
{Drache sind Feldbett-Camper
}
{Drache sind Ein-Pfennig-zuviel-Tanker!
}
{Drache sind Weiss-und-Buntwaesche-Sortierer!
}
{Drache sind Brusthaar-Rasierer!
}
{Drache sind AGB-Leser!
}
{Drache sind Kalorien-Zaehler!
}
{Drache sind Heizdecken-Lieger!
}
{Drache sind Merkzettel-Schreiber!
}
{Drache sind Feuilleton-Leser!
}
{Drache sind Chef-Tuer-leise-Zumacher!
}
{Drache sind Teletubbie-Zurueck-Winker!
}
{Drache sind Falschrum-in-die-Drehtuer-Reinlaufer!
}
{Drache sind Milchkaffee-Trinker!
}
{Drache sind Hustensirup-Trinker!
}
{Drache sind Gebrauchsanweisungs-Leser!
}
{Drache sind To-Do-Listenschreiber!
}
{Drache sind Grippe-Vorsorgeimpfer!
}
{Drache sind Detlev-Heisser!
}
{Drache sind Zimmerpflanzen-Giesser!
}
{Drache sind Seifen-Buecker!
}
{Drache sind Feldbett-Camper
}
{Drache sind Ein-Pfennig-zuviel-Tanker!
}
set drache_usage 0
bind pub - $drache_cmd dummer_drache
proc dummer_drache {nick host handle chan rest} {
global drachen
global drache_usage
putserv "NOTICE $chan :[lindex $drachen [rand [llength $drachen]]]"
incr drache_usage
return 0
}
bind pub - $drachestats_cmd drache_stats
proc drache_stats {nick host handle chan rest} {
global drachen
global drache_usage
global drache_cmd
putserv "NOTICE $chan :Ich habe [llength $drachen] Anti-Drache-Sprueche in meiner Datenbank ! $drache_cmd wurde seit dem letzten rehash $drache_usage mal benutzt."; return 0
}
|
| Quote: | | [03:48] <sboilt> [03:48] Kann keine Module laden blowfish: Already loaded. |
Or it says there is missing close bracket in line 15... but there is nothing missing?
PLS help *gg* |
|
| Back to top |
|
 |
awyeah Revered One

Joined: 26 Apr 2004 Posts: 1580 Location: Switzerland
|
Posted: Wed Aug 10, 2005 10:07 pm Post subject: |
|
|
Check your list again carefully you are missing a closing brace somewhere or I think its the one at the end. It should be in the format:
| Code: |
set mylist {
{reply 1}
{reply 2}
{reply 3}
}
|
_________________ ·awyeah·
==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
================================== |
|
| Back to top |
|
 |
Spoilt Voice
Joined: 10 Aug 2005 Posts: 5
|
Posted: Wed Aug 10, 2005 10:24 pm Post subject: |
|
|
[04:21] <sboilt> [04:21] Tcl error in file 'eggdrop.conf':
[04:21] <sboilt> [04:21] missing close-brace
[04:21] <sboilt> while executing
[04:21] <sboilt> "set drachen {
[04:21] <sboilt> {Drache ist doof!
[04:21] <sboilt> }
[04:21] <sboilt> {Drache ist dumm!
[04:21] <sboilt> }
[04:21] <sboilt> {Ich mag keine Drachen!
[04:21] <sboilt> }
[04:21] <sboilt> {Ich bin Drachentoeter!
[04:21] <sboilt> }
[04:21] <sboilt> {Drache stinkt!
[04:21] <sboilt> }
[04:21] <sboilt> {Drache sind feiglinge
[04:21] <sboilt> }
[04:21] <sboilt> {..."
[04:21] <sboilt> (file "scripts/drache.tcl" line 5)
[04:21] <sboilt> invoked from within
[04:21] <sboilt> "source scripts/drache.tcl"
[04:21] <sboilt> (file "eggdrop.conf" line 1348)
no there isnt a bracket missing  |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Wed Aug 10, 2005 10:31 pm Post subject: |
|
|
| Spoilt wrote: | [04:21] <sboilt> [04:21] missing close-brace
[04:21] <sboilt> while executing
[04:21] <sboilt> "set drachen { |
Oh yes there is!  _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
Spoilt Voice
Joined: 10 Aug 2005 Posts: 5
|
Posted: Wed Aug 10, 2005 10:33 pm Post subject: |
|
|
| okay.. where? i do not see it -.- |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Wed Aug 10, 2005 10:35 pm Post subject: |
|
|
| Spoilt wrote: | | okay.. where? i do not see it -.- |
This:
| Code: | {Drache sind Ein-Pfennig-zuviel-Tanker!
} |
Should be this:
| Code: | {Drache sind Ein-Pfennig-zuviel-Tanker!}
} |
If the format was done as above you would have picked it up immediately! _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
awyeah Revered One

Joined: 26 Apr 2004 Posts: 1580 Location: Switzerland
|
Posted: Wed Aug 10, 2005 10:36 pm Post subject: |
|
|
You didn't bother to check what I told you, did you? Use this.
| Code: |
set drachen {
{Drache ist doof!}
{Drache ist dumm!}
{Ich mag keine Drachen!}
{Ich bin Drachentoeter!}
{Drache stinkt!}
{Drache sind feiglinge }
{Drachen stinken, Drachen miefen, darum lasst uns ihre hintern stiefeln }
{Drache sind nicht gut!}
{Drache sind flamer!}
{Drache sind sharer!}
{Drache sind warmduscher!}
{Drache sind unnuetz!}
{Drache sind cheater!}
{Drache sind schlecht bestueckt!}
{Drache sind schlecht!}
{Drache sind nicht gut!}
{Drache sind nicht schoen!}
{Drache sind nicht haesslich!}
{Drache sind Wunderkerzen-Feuerwerker!}
{Drache sind Nicht-das-Messer-Ablecker!}
{Drache sind Sich-vor-Aufregung-in-die-Hosen-Macher!}
{Drache sind Koks-von-den-Geldscheinen-Abkratzer!}
{Drache sind Nicht-neben-der-Freundin-Furzer!}
{Drache sind T-Shirt-Luefter!}
{Drache sind Flaeschchen-Trinker!}
{Drache sind Warteschleifen-Musik-Mitsummer!}
{Drache sind Jede-Woche-die-Unterhosen-Wechsler!}
{Drache sind Schlips-mit-zwei-Knoten-Binder!}
{Drache sind Haehnchen-nur-durcherhitzt-Esser!}
{Drache sind Jeep-Safari-Pfuetzen-Umfahrer!}
{Drache sind Dreimal-taeglich-Zaehneputzer!}
{Drache sind Faszinierend-Finder!}
{Drache sind der-Frau-keinen-Orgasmus-Bereiter!}
{Drache sind Grundgesetz-Besitzer!}
{Drache sind Mutter-Soehnchen!}
{Drache sind Beifalls-Applaudierer!}
{Drache sind Titanic-Mitheuler!}
{Drache sind Frohes-Fest-Wuenscher!}
{Drache sind Scheinbart-Rasierer!}
{Drache sind Sofort-zum-Arzt-Renner!}
{Drache sind Schutzglas-Schweisser!}
{Drache sind Bauspar-Sparer!}
{Drache sind Gewinnspiel-Teilnehmer!}
{Drache sind Duschhauben-Traeger!}
{Drache sind Gleichberechtigungs-Schwafler!}
{Drache sind Praktikanten-Schoner!}
{Drache sind Am-Feierabend-an-Arbeit-Denker!}
{Drache sind Verwendungszweck-Ausfueller!}
{Drache sind Im-Winter-Scheibenwischer-Wegklapper!}
{Drache sind In-Unterwaesche-Solarium-Lieger!}
{Drache sind Gymnastik-Mitmacher!}
{Drache sind Leergut-Spueler!}
{Drache sind Unterm-Schrank-Staubsauger!}
{Drache sind Hemd-in-den-Schluepfer-Stecker!}
{Drache sind Alufolien-Wiederverwender!}
{Drache sind Tuetenwein-Trinker!}
{Drache sind Saucen-Entfetter!}
{Drache sind Gluecksrad-Mitrater!}
{Drache sind Schluckauf-Unterdruecker!}
{Drache sind Disketten-Beschrifter!}
{Drache sind Handschuh-Eiskratzer!}
{Drache sind Luft-Gittarist!}
{Drache sind Am-Gelaender-Festhalter!}
{Drache sind Duftkerzen-Benutzer!}
{Drache sind Neuwagen-Kilometer-Schoner!}
{Drache sind Rechtsschutz-Versicherer!}
{Drache sind Diesel-Handschuh-Tanker!}
{Drache sind Gluehbirnenwechsel-Sicherungs-Herausschrauber!}
{Drache sind Regen-Kombi-Radler!}
{Drache sind Entziehungskur-Teilnehmer!}
{Drache sind Im-Reformhaus-Kaeufer!}
{Drache sind Club-Med-Animations-Mitmacher!}
{Drache sind Decke-bis-zum-Kinn-Zieher!}
{Drache sind Haklefeucht-Benutzer!}
{Drache sind Pass-am-Zoll-Bereithalter!}
{Drache sind Lehrer-Kind!}
{Drache sind Betroffenheits-Schwaller!}
{Drache sind Mittags-Zaehneputzer!}
{Drache sind Auf-dem-Schiessplatz-Ohrstoepsel-Traeger!}
}
|
You can also use the format:
| Code: |
set drachen {
"Drache ist doof!"
"Drache ist dumm!"
"Ich mag keine Drachen!"
"Ich bin Drachentoeter!"
}
|
_________________ ·awyeah·
==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
================================== |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Wed Aug 10, 2005 10:39 pm Post subject: |
|
|
I prefer the 2nd format, it's 100% easier to read and pickup any error(s).  _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
Spoilt Voice
Joined: 10 Aug 2005 Posts: 5
|
Posted: Wed Aug 10, 2005 10:47 pm Post subject: |
|
|
ahh ic sorry....
i lost the brace at the end -.-
big thx  |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Thu Aug 11, 2005 12:58 am Post subject: |
|
|
| there is also the issue of unnecessary implicit conversion between Tcl_Obj types list and string (see my posting about script performance in the FAQ section), which is worse than bad brace ordering |
|
| Back to top |
|
 |
Spoilt Voice
Joined: 10 Aug 2005 Posts: 5
|
Posted: Thu Aug 11, 2005 7:03 am Post subject: |
|
|
yeah i saw it.. but i didnt see that there must be 2 closing braces at the end  |
|
| Back to top |
|
 |
|