16/10/2020, 16:16
Bonjour,
Alors voilà j'ai l'eggdrop qui plante en me disant que j'ai un soucis au niveau des "{}".
Hors j'ai vérifié et compter.. pour être sur de moi, donc je vois pas top ou es le soucis.
Si vous avez des idées..
Message Erreur PL :
Le TCL :
Merci pour vos réponses d'avances
Alors voilà j'ai l'eggdrop qui plante en me disant que j'ai un soucis au niveau des "{}".
Hors j'ai vérifié et compter.. pour être sur de moi, donc je vois pas top ou es le soucis.
Si vous avez des idées..
Message Erreur PL :
Quote:<IriZzU> [16:12:41] Tcl error in file 'Eva.conf':
<IriZzU> [16:12:41] invalid command name "}"
<IriZzU> while executing
<IriZzU> "}"
<IriZzU> (file "scripts/Eva-SQL.tcl" line 109)
<IriZzU> invoked from within
<IriZzU> "source scripts/Eva-SQL.tcl"
<IriZzU> (file "Eva.conf" line 102)
<IriZzU> [16:12:41] * FICHIER DE CONFIGURATION NON CHARGE (INTROUVABLE OU ERREUR)
* Conversation DCC avec IriZzU perdue (L'hôte distant a fermé la socket)
* IriZzU a quitté (Read error)
Le TCL :
tcl
################################################################################## #
# #
# TCL Eva comprenant les sockets Eva - Log-Serv #
# #
# Code incluant les évenements server (event) - Log des commandes #
# Ainsi que toutes les commandes executoire des sockets Eva #
# #
# Eva pour l'utilisation des Ircops. #
# #
# #
##################################################################################
# - Chargement De la Configuration ainsi que les TCL - #
source [file join Eva Socket.conf]
source [file join Eva Eva-Proc-SQL.tcl]
# Binds
bind dcc n xconnect proc:xconnect
# - Proc Send - #
proc send {arg} {
global eva
set arg [charfilter $arg]
putdcc $eva(idx) [join $arg]
}
# - Fin proc send - #
# - Proc Charfilter - #
proc charfilter {a} {
regsub -all {\\} $a {\\\\} a
regsub -all {\{} $a {\{} a
regsub -all {\}} $a {\}} a
regsub -all {\]} $a {\]} a
regsub -all {\[} $a {\[} a
regsub -all {\"} $a {\"} a
return $a
}
# - Fin proc Charfilter - #
# - Proc check_connect - #
proc check_connect {} {
global eva
if {[valididx $eva(idx)]} {
utimer 30 check_connect
} else {
proc:xconnect
}
}
# - Fin proc check_connect - #
####################################
# PROCEDURE DE LANCEMENT DU SERVICE#
# By Chieur MODIFIER #
####################################
bind raw - "001" lanch
#####################
# PROCEDURE LANCH #
#####################
proc lanch {f k t} {
after 1000 proc:xconnect
}
################
# Verification #
################
proc proc:xconnect {idx nick arg} {
global eva
if {[valididx $eva(idx)]} {utimer 20 verifidx} else {utimer 2 connexion}
}
# - Proc xconnect - #
proc connexion {} {
global eva
if {[info exists Bot(idx)] && [valididx $Bot(idx)]} {
if {$arg=="-s"} {
send ":$eva(serv) SQUIT $eva(serv) 0 :Rebooting Services!"
} else {
putdcc $idx "UWorld déjà connecté. Tapez '.xconnect -s' pour squiter et reconnecter."; return 0 }
}
set eva(idx) [connect $eva(ip) $eva(port)]
send "PROTOCTL NICKv2 SJOIN2 UMODE2 NOQUIT VL TKLEXT VHP"
send "PASS $eva(pass)"
send "SERVER $eva(serv) 1 :$eva(info)"
send "EOS"
send ":$::eva(serv) NICK $::eva(nick) 1 [unixtime] $::eva(ident) $::eva(host) $::eva(serv) 0 +iowghasxBqSt $::eva(host) :$::eva(realname)"
send ":$::eva(serv) NICK $::logserv(nick) 1 [unixtime] $::logserv(ident) $::logserv(host) $::eva(serv) 0 +iowghasxBqSt $::logserv(host) :$::logserv(realname)"
send ":$::eva(nick) JOIN $::eva(log)"
send ":$::eva(nick) JOIN $::salon(robots)"
send ":$::eva(nick) JOIN $::glob(debug:chan)"
send ":$::logserv(nick) JOIN $::eva(log)"
send ":$::logserv(nick) JOIN $::salon(robots)"
send ":$::antiprox(nick) JOIN $::eva(log)"
send ":$::antiprox(nick) JOIN $::salon(robots)"
send ":$::eva(nick) MODE $::eva(log) +o $::eva(nick)"
send ":$::eva(nick) MODE $::salon(staff) +o $::eva(nick)"
send ":$::eva(nick) MODE $::glob(debug:chan) +o $::eva(nick)"
send ":$::eva(nick) MODE $::eva(log) +sntO"
send ":$::eva(nick) MODE $::salon(staff) +sntO"
send ":$::eva(nick) MODE $::glob(debug:chan)"
send ":$::eva(nick) TOPIC $::eva(log) :\02\0034Salon Logs Server & Ircops\02\0034"
send ":$::eva(nick) TOPIC $::salon(staff) :\02\0034Salon Staff du Server\02\0034"
send ":$::eva(nick) TOPIC $::glob(debug:chan) :\02\0034Salon seulement pour les Responsables codeurs du server.\02\0034"
send ":$::eva(nick) WALLOPS Service \02Eva\02 activé."
set eva(uptime) [unixtime]
control $eva(idx) eva_event
utimer 30 check_connect
return 1
}
}
# - Fin proc xconnect - #
# - Proc eva_event - #
proc eva_event {idx arg} {
set arg [split $arg]
regsub -all {\\} $arg {\\\\} arg
regsub -all {\{} $arg {\{} arg
regsub -all {\}} $arg {\}} arg
regsub -all {\]} $arg {\]} arg
regsub -all {\[} $arg {\[} arg
regsub -all {\"} $arg {\"} arg
#if {$::eva(debug)=="1"} { send ":$::eva(nick) PRIVMSG $::glob(debug:chan) :[join [lrange $arg 0 end]]" }
switch -exact [lindex $arg 0] {
"NICK" {
set pseudo [string trim [lindex $arg 1] :]
set identd [lindex $arg 4]
set host [lindex $arg 5]
set host2 [lindex $arg 5]
set serv [lindex $arg 6]
set name [string trim [lrange $arg 10 end] :]
if { $::eva(setlog)=="1" } {
send ":$::logserv(nick) PRIVMSG $::eva(log) :\[\0034Connect\003\] \0037$pseudo\003 \[User@Host\] \002$identd@$host\002 (Realname : \0036$name\0031) - Sur \0034$serv\0034"
}
}
"PING" {
putdcc $::eva(idx) "PONG [lindex $arg 1]"
}
}
if {[lindex $arg 1] eq "PRIVMSG"} {
set commande "[string trim [lindex $arg 3] :]"
set nick "[string trim [lindex $arg 0] :]"
set destinataire "[lindex $arg 2]"
# - la socket - #
if {[string equal -nocase $destinataire $::eva(nick)]} {
# - la commande - #
if {[string equal -nocase $commande login]} {
set pseudo [lindex $arg 4]
set pass [lindex $arg 5]
set host [lindex $arg 6]
set uhost "*!*@*[lindex $host 1]"
# - affichage syntax - #
if { $pseudo == "" || $pass == "" } {
send ":$::eva(nick) NOTICE $nick :/msg $::eva(nick) auth <pseudo> <pass>"
return 0
}
if {![isvaliduser $pseudo]} {
send ":$::eva(nick) NOTICE $nick :$pseudo user inconnue !"
putlog "Passe 1 $pseudo"
return 0
}
send ":$::eva(nick) WHOIS $pseudo"
#if {![ishost $pseudo $uhost]} {
# send ":$::eva(nick) NOTICE $nick :Host invalide !"
# putlog "Passe 2 $pseudo $uhost"
#return 0
#}
if {![isvalidpassword $pseudo $pass]} {
send ":$::eva(nick) NOTICE $nick :Erreur, mot de passe incorrect."
putlog "Error mdp : $pseudo $pass"
return 0
}
if {[issuspend $pseudo]} {
send ":$::eva(nick) NOTICE $nick :Accés suspendu !"
putlog "Passe 3 $pseudo $pass"
return 0
}
if {[isauth $pseudo]} {
send ":$::eva(nick) NOTICE $nick :Vous êtes déjà identifié !"
putlog "Passe 4 $pseudo"
return 0
}
send ":$::eva(nick) NOTICE $nick :Félicitation, vous êtes identifié !"
auth $pseudo
}
}
}
}
# - Fin proc eva_event - #
putlog "\0034Eva-SQL chargé"
Merci pour vos réponses d'avances