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.

Failure @ line 1

Old posts that have not been replied to for several years.
Locked
B
Balkanac
Voice
Posts: 12
Joined: Mon Aug 15, 2005 12:38 pm

Failure @ line 1

Post by Balkanac »

[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: Select all

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
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

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.
B
Balkanac
Voice
Posts: 12
Joined: Mon Aug 15, 2005 12:38 pm

Post by Balkanac »

I don't understand what you mean!?
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

module irc is not loaded
B
Balkanac
Voice
Posts: 12
Joined: Mon Aug 15, 2005 12:38 pm

Post by Balkanac »

thank you demond!

ps: where I can find the Modul IRC?


There isn't @ the eggdrop.1.6.17.tar.gz...
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

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:
#### 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. :P
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Re: Failure @ line 1

Post by De Kus »

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.
##### 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...
Locked