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.

Troubles on ChanRelay 5.0.0 by CrazyCat

Help for those learning Tcl or writing their own scripts.
Post Reply
s
sauk
Voice
Posts: 16
Joined: Sun Jul 05, 2020 4:33 am

Troubles on ChanRelay 5.0.0 by CrazyCat

Post by sauk »

I got some troubles configuring and launching your script, could you help me fixing it?

Code: Select all

Tcl error in file 'eggdrop.conf':
can't read "::crelay::regg(bot)": no such element in array
    while executing
"array set me $::crelay::regg($::username)"
    (procedure "::crelay::init" line 4)
    invoked from within
"::crelay::init"
    (file "scripts/chanrelay.tcl" line 1187)
    invoked from within
"source scripts/chanrelay.tcl"
    (file "eggdrop.conf" line 79)
* CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
Online
User avatar
CrazyCat
Revered One
Posts: 1236
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

Can you show us the config part of the tcl ?
It looks like you didn't set the good value in the regg() array.

Have a look and read https://gitlab.com/tcl-scripts/chanrela ... ay.tcl#L35, show me your config part and check that username setted in your eggdrop.conf matches.
s
sauk
Voice
Posts: 16
Joined: Sun Jul 05, 2020 4:33 am

Post by sauk »

CrazyCat wrote:Can you show us the config part of the tcl ?
It looks like you didn't set the good value in the regg() array.

Have a look and read https://gitlab.com/tcl-scripts/chanrela ... ay.tcl#L35, show me your config part and check that username setted in your eggdrop.conf matches.

Code: Select all

namespace eval crelay {

	variable regg
	variable default
	variable userlist

	### CONFIGURATION ###
	
	# debug mode : set to 1 to enable
	set debug 1
	
	# language to use : default is english, french available
	set lang english
	
	set regg(ChanLink) {
		"chan"      "#sauk"
		"network"   "Quakenet"
		"highlight" 0
		"log"       "y"
		"syn_topic" "y"
		"col_act"   "lightred"
		"col_jpq"   "lightblue"
		"col_mode"  "green"
		"usermask"	"<%nick%@%network%>"
		"clone"		1
	}

	set regg(ChanEgg) {
		"chan"      "#bouncers"
		"network"   "Dalnet"
		"highlight" 3
	}

	# You can edit values but not remove
	# or you'll break the system
	set default {
		"highlight" 1
		"snet"      "y"
		"transmit"  "y"
		"receive"   "y"
		"log"       "n"
		"syn_topic" "n"
		"col_act"   "purple"
		"col_jpq"   "cyan"
		"col_mode"  "green"
		"usermask"	"(%nick%@%network%)"
		"clone"		0
	}

	# Fill this list with the nick of the users
	# who WON'T BE relayed, as services bot
	variable users_excluded {\[Guru\] Pan}

	# Fill this list with the nick of the users
	# wich will be THE ONLY ONES to be relayed
	variable users_only {}

	# Set the banmask to use in banning the IPs  
	# Default banmask is set to 1
	# 1 - *!*@some.domain.com 
	# 2 - *!*@*.domain.com
	# 3 - *!*ident@some.domain.com
	# 4 - *!*ident@*.domain.com
	# 5 - *!*ident*@some.domain.com
	# 6 - *nick*!*@*.domain.com
	# 7 - *nick*!*@some.domain.com
	# 8 - nick!ident@some.domain.com
	# 9 - nick!ident@*.host.com
	set bantype 1
	
	# Path and name of the config file
	# %b will be replaced with the botnick
	variable config "%b.chanrelay.db"
	
	# Path and name of the logfile (used for debug)
	variable logfile "chanrelay.log"

	# max length of a message
	variable msglen 350
	
	# transmission configuration
	set trans_pub "y"; # transmit the pub
	set trans_act "y"; # transmit the actions (/me)
	set trans_nick "y"; # transmit the nick changement
	set trans_join "y"; # transmit the join
	set trans_part "y"; # transmit the part
	set trans_quit "y"; # transmit the quit
	set trans_topic "y"; # transmit the topic changements
	set trans_kick "y"; # transmit the kicks
	set trans_mode "y"; #transmit the mode changements
	set trans_who "y"; # transmit the who list

	# reception configuration
	set recv_pub "y"; # recept the pub
	set recv_act "y"; # recept the actions (/me)
	set recv_nick "y"; # recept the nick changement
	set recv_join "y"; # recept the join
	set recv_part "y"; # recept the part
	set recv_quit "y"; # recept the quit
	set recv_topic "y"; # recept the topic changements
	set recv_kick "y"; # recept the kicks
	set recv_mode "y"; # recept the mode changements
	set recv_who "y"; # recept the who list
}
Online
User avatar
CrazyCat
Revered One
Posts: 1236
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

So your trouble might be in your eggdrop.conf: https://github.com/eggheads/eggdrop/blo ... p.conf#L25

Check that you set this variable to ChanLink and to ChanEgg in their respective configuration file.
Post Reply