Communauté Eggdrop
Commande md5 buggée - Version imprimable

+- Communauté Eggdrop (https://forum.eggdrop.fr)
+-- Forum : Eggdrop et TCL (https://forum.eggdrop.fr/forumdisplay.php?fid=8)
+--- Forum : Eggdrop (https://forum.eggdrop.fr/forumdisplay.php?fid=3)
+--- Sujet : Commande md5 buggée (/showthread.php?tid=1067)

Pages : 1 2


Commande md5 buggée - Belatucadrus - 04/11/2011

Bonjour,

Après avoir eu plusieurs problemes avec l'interface MegaHAL de MenzAgitat, j'ai découvert que le problème venait de mon eggdrop dont la commande md5 ne fonctionnait pas bien.

En théorie, je devrais obtenir ceci :

Citation :(12:52:11) (@MenzAgitat) .tcl md5 test
(12:52:11) (@Boole) Tcl: 098f6bcd4621d373cade4e832627b4f6

Et à la place, j'ai ceci :

Citation :(12:51:3Cool (@Yoshi) .tcl md5 test
(12:51:3Cool (@Umbreon) Tcl: { kÍF!ÓsÊÎNƒ&'´ö}

J'ai déjà recompilé mon eggdrop, et la version installée est celle téléchargée sur eggdrop.fr (1.6.20.1062000)

Je ne sais pas d'où peut venir le problème :/


RE: Commande md5 buggée - djkenny - 04/11/2011

salut,
regardes ici


RE: Commande md5 buggée - Belatucadrus - 04/11/2011

Cette page m'explique juste comment utiliser la commande md5, ou alors j'ai pas trop compris quoi faire avec :/


RE: Commande md5 buggée - djkenny - 04/11/2011

tapes
Code :
.tcl md5 -hex test



RE: Commande md5 buggée - Belatucadrus - 04/11/2011

Citation :(18:14:02) (@Umbreon) Tcl: unknown option '-hex', should be '-mode', '-matchflag', '-write-destination', '-write-type', '-read-destination' or '-read-type'



RE: Commande md5 buggée - djkenny - 04/11/2011

effectivement la il y a un problème, ce n'est ni la commande md5 de tcllib, ni celle d'eggdrop.
tu n'as pas un tcl ou un module de chargé et qui crée une commande md5?


RE: Commande md5 buggée - Belatucadrus - 04/11/2011

Citation :(12:52:55) (@Yoshi) .tcl info procs *md5*
(12:52:56) (@Umbreon) Tcl:

A priori non :/


RE: Commande md5 buggée - djkenny - 04/11/2011

décharges tous tes tcl, restart et fait un essais
Code :
.tcl md5 test



RE: Commande md5 buggée - djkenny - 05/11/2011

j'ai peut être une solution
charges ça:
tcl
if {[info command md5]!="" && [info command _md5]==""} {
    package require md5
    rename md5 _md5
    proc md5 string {
        ::md5::md5 -hex $string
    }
}





RE: Commande md5 buggée - Belatucadrus - 07/11/2011

Citation :(23:32:19) (@Yoshi) .tcl md5 test
(23:32:20) (@Umbreon) Tcl: wrong # args: should be "::md5 string"



RE: Commande md5 buggée - djkenny - 07/11/2011

tu utiliserais pas critcl ou un truc dans le genre?

Citation :(18:14:02) (@Umbreon) Tcl: unknown option '-hex', should be '-mode', '-matchflag', '-write-destination', '-write-type', '-read-destination' or '-read-type'
c'est la commande md5c de tcllibc

sinon pour la commande que je t ais donné ça fonctionne parfaitement
Citation :[23:38] <Dj_KennY> &tcl md5 test
[23:38] <Tcl-Bot2> TCL -> 098F6BCD4621D373CADE4E832627B4F6



RE: Commande md5 buggée - Belatucadrus - 07/11/2011

Probleme résolu. J'ai créé un bot vierge et j'y ai déplacé mes scripts, je sais pas d'où venait le probleme mais mainteanant c'est réglé...

EDIT : Le probleme est causé par le script RSS Fetcher.

Il est à jour, mais cause toujours le même problème de MD5 quand j'essaye de le charger ...


RE: Commande md5 buggée - djkenny - 07/11/2011

d'un script ou d'un module qui charge md5c (version C de md5.tcl)


RE: Commande md5 buggée - Belatucadrus - 07/11/2011

J'ai édité mon message, la source du probleme est un script, mais ce script est important :/


RE: Commande md5 buggée - djkenny - 07/11/2011

postes le script en question