#informatique Bot Logged User list

Network: Zeolia
Modes: +nrt
Last Seen: 56 minutes ago
Topic: Canal d'aide informatique - Développement / Web / Windows - Pour les questions linux, rejoindre #linux
#3
Rank
11
Users

Channel Log Archive for #informatique

Prev
Next

* All times are UTC
Filtering by user: Amand
Wednesday, April 5, 2023
[13:42:28] Amand hi
[13:43:55] Amand oh CrazyCat bad news
[14:08:11] Amand il faudrait peut être que ce raw soit sous la forme :irc.server.com key .. comme pour un who par exemple
[14:09:05] Amand [15:47:41] [@] :irc.localhost.fr 315 Eggdrop relaktest :End of /WHO list.
[14:10:08] Amand [15:47:41] [@] :irc.localhost.fr XXX @unrealircd.org/json-log={...}
[14:18:35] Amand ah mince, j'ai mis mon post sur le forum trop vite
[14:19:02] Amand je te laisse me répondre pour me corriger
[14:26:05] Amand je trouve pas de bind log dans la doc
[14:28:49] Amand je vais faire un test
[14:34:47] Amand bind log - "* @unrealircd.org/json-log" ::checkpays::log:gestion
[14:34:47] Amand proc ::checkpays::log:gestion {level channel message} {
[14:34:47] Amand }
[14:34:47] Amand putlog "message => $message"
[14:35:01] Amand ça me retourne rien
[14:40:52] Amand et quand je met *
[14:41:03] Amand [16:40:24] message => [@] @unrealircd.org/json-log={..}
[14:41:18] Amand il me retourne bien le putlog
[14:42:35] Amand ah je crois que j'ai trouvé
[14:42:44] Amand bind log - "*@unrealircd.org/json-log*" ::checkpays::log:gestion
[14:43:10] Amand là il me retourne que la ligne du json
[14:45:43] Amand bind log - "*@unrealircd.org/json-log*LOCAL_CLIENT_CONNECT*" ::checkpays::log:gestion
[14:45:58] Amand ça fonctionne aussi, il me retourne que celle de la connection pas de la déconnexion
[14:48:21] Amand par contre le message est coupé
[14:48:33] Amand <Eggdrop> [16:47:20] [@]
[14:48:33] Amand @unrealircd.org/json-log={"timestamp":"2023-04-05T14:47:20.596Z","level":"info","subsystem":"connect","event_id":"LOCAL_CLIENT_CONNECT","log_source":"irc.localhost.fr","msg":"Client\sconnecting:\snala\s(HOBbdsyok@lan52-h01-176-135-106-123.net.bbox.fr)\s[176.135.106.123]\s[vhost:\sC61E991.7D2D7D86.E8095330.IP]\s[class:\sclients]\s[secure:\sTLSv1.3-TLS_CHACHA20_POLY1305_SHA256]\s[country:\sFR]\s[reputation:\s2434]\s[security-groups:\sknown-users
[14:48:33] Amand ,webirc-users,tls-and-known-users,tls-users]","client
[14:48:44] Amand il doit y avoir une limite
[14:50:42] Amand hm faut que je retrouve la syntaxe pour les fichiers, j'utilise plus mysqltcl
[14:50:49] Amand wait
[14:52:16] Amand yes, tu m'avais déjà fait la proc pour le maxchan
[14:52:30] Amand j'allais l'adapté, ok je test
[14:54:03] Amand ah oui c'est bon dans le fichier il envoie tout
[14:54:24] Amand et seulement le local client connect, nickel
[14:55:49] Amand bind log - "*@unrealircd.org/json-log*CLIENT_CONNECT*" ::checkpays::log:gestion
[14:55:51] Amand c'est mieux
[14:57:34] Amand maintenant qu'on recup bien le json, faut le traiter
[14:57:46] Amand :]
[14:57:56] Amand mais bon là c'est l'heure pour toi de quitter le boulot :p
[14:59:38] Amand donc là c'est bon, tu as réussi à isoler la ligne pour le json
[14:59:52] Amand maintenant, faut faire le traitement pour récupérer les variables
[15:00:02] Amand et je vois des \s un peu partout pour les espaces
[15:02:38] Amand brb tel
[15:27:19] Amand re
[15:45:29] Amand oui je devrais pouvoir m'en sortir
[15:49:42] Amand proc ::checkpays::json2dict {JSONtext} {
[15:49:42] Amand string range [string trim [string trimleft [string map {\t {} \n {} \r {} , { } : { } \[ \{ \] \}} $JSONtext] {\uFEFF}]] 1 end-1
[15:49:42] Amand }
[15:49:53] Amand ta procédure json2dict est valable dans notre cas?
[15:56:34] Amand ce genre de proc avec des string map , regexp c'est pas évident pour moi
[16:45:55] Amand si tu peux me fournir juste un exemple avec une variable
[16:50:52] Amand ce qu'on veut, c'est ce qu'il y a dans
[16:50:54] Amand "client":{
[16:51:22] Amand "user":{
[20:32:33] Amand ouais bon j'arrive pas à faire grand chose, je stop pour ce soir
Prev
Next