egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Failure @ line 1

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
Balkanac
Voice


Joined: 15 Aug 2005
Posts: 12

PostPosted: Mon Aug 15, 2005 12:43 pm    Post subject: Failure @ line 1 Reply with quote

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
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Mon Aug 15, 2005 12:49 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Balkanac
Voice


Joined: 15 Aug 2005
Posts: 12

PostPosted: Mon Aug 15, 2005 12:59 pm    Post subject: Reply with quote

I don't understand what you mean!?
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Mon Aug 15, 2005 1:01 pm    Post subject: Reply with quote

module irc is not loaded
Back to top
View user's profile Send private message Visit poster's website
Balkanac
Voice


Joined: 15 Aug 2005
Posts: 12

PostPosted: Mon Aug 15, 2005 1:02 pm    Post subject: Reply with quote

thank you demond!

ps: where I can find the Modul IRC?


There isn't @ the eggdrop.1.6.17.tar.gz...
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Mon Aug 15, 2005 9:10 pm    Post subject: Reply with quote

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. Razz
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Wed Aug 17, 2005 10:57 am    Post subject: Re: Failure @ line 1 Reply with quote

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
View user's profile Send private message MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber