| View previous topic :: View next topic |
| Author |
Message |
Balkanac Voice
Joined: 15 Aug 2005 Posts: 12
|
Posted: Mon Aug 15, 2005 12:43 pm Post subject: Failure @ line 1 |
|
|
| Quote: | [18:29] Tcl error in file 'eggdrop.conf':
[18:29] bad type, should be one of: act, away, bcst, bot, chat, chjn, chof, chon, chpt, dcc, disc, evnt, filt, link, load, nkch, note, time, unld
while executing
"bind pub - !creg pub_creg"
(file "scripts/chanreg.tcl" line 1)
invoked from within
"source scripts/chanreg.tcl"
(file "eggdrop.conf" line 109)
[18:29] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR) |
| Code: | bind pub - !creg pub_creg
proc creg { nick address handle chan text } {
set ::creg(chan) [lindex [split $text] 0]
set ::creg(pw) [lindex [split $text] 1]
set ::creg(desc) [lindex [split $text] 2]
putserv "notice ChanServ :info $::creg(chan)"
}
bind notc - * notc_chanserv
proc notc_chanserv { nick address handle text dest } {
set 3 [lindex [split $text] 2]
if {[string match -nocase "ChanServ" $nick] && [string match -nocase "is" $3]} {
putserv "privmsg #ircops :This channel is already registered. Can not register $::creg(chan) !"
return 0
}
if {[string match -nocase "ChanServ" $nick] && [string match -nocase "*is not registered*" $text]} {
utimer 1 [list putserv "privmsg ChanServ :REGISTER $::creg(chan) $::creg(pw) $::creg(desc)"]
utimer 2 [list putserv "privmsg ChanServ :SET $::creg(chan) IDENT off"]
utimer 3 [list putserv "privmsg ChanServ :SOP $::creg(chan) add S"]
utimer 4 [list putserv "privmsg ChanServ :SOP $::creg(chan) add BoRLaNd"]
return 0
}
if {[string match -nocase "ChanServ" $nick] && [string match -nocase "*registration of $::creg(chan)*" $text]} {
set registered_chan [lindex [split $text] 2]
putserv "globops :ChanServ: The nickname \002${registered_chan}\002 has now been registered!"
return 0
}
else { return 0 }
} |
Last to you very gratefully for a rapid and clean solution!
Greetings
Balkanac |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Mon Aug 15, 2005 12:49 pm Post subject: |
|
|
First, you didn't read the sticky post in this forum else you would've known that you should've specified the name of the script in the topic.
Anyway, there's no pub_creg proc in your code, there's a creg proc though. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
Balkanac Voice
Joined: 15 Aug 2005 Posts: 12
|
Posted: Mon Aug 15, 2005 12:59 pm Post subject: |
|
|
| I don't understand what you mean!? |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Mon Aug 15, 2005 1:01 pm Post subject: |
|
|
| module irc is not loaded |
|
| Back to top |
|
 |
Balkanac Voice
Joined: 15 Aug 2005 Posts: 12
|
Posted: Mon Aug 15, 2005 1:02 pm Post subject: |
|
|
thank you demond!
ps: where I can find the Modul IRC?
There isn't @ the eggdrop.1.6.17.tar.gz... |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Mon Aug 15, 2005 9:10 pm Post subject: |
|
|
| Balkanac wrote: | thank you demond!
ps: where I can find the Modul IRC?
There isn't @ the eggdrop.1.6.17.tar.gz... |
From eggdrop.conf:
| Quote: | #### IRC MODULE ####
# This module provides basic IRC support for your bot. You have to
# load this if you want your bot to come on IRC. The server and channels
# modules must be loaded for this module to function.
loadmodule irc |
Modules are created upon compile.  _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
De Kus Revered One

Joined: 15 Dec 2002 Posts: 1361 Location: Germany
|
Posted: Wed Aug 17, 2005 10:57 am Post subject: Re: Failure @ line 1 |
|
|
| Balkanac wrote: | "source scripts/chanreg.tcl"
(file "eggdrop.conf" line 109) |
If you are using a commented eggdrop.conf this is way to early, considering the fact the module irc isnt loaded (yet) from demonds diagnostic, you are proably simply loading the script before the required module is loaded. move all source commands behind loadmodule. In the default eggdrop.conf this is line 1338 and the following.
| Quote: | ##### SCRIPTS #####
# This is a good place to load scripts to use with your bot. |
_________________ De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens... |
|
| Back to top |
|
 |
|