mIRC Home    About    Download    Register    News    Help

Print Thread
#271509 06/04/23 06:40 PM
Joined: Oct 2010
Posts: 28
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Oct 2010
Posts: 28
Hello, looking for some help on what I believe is a bug so here goes...

Unrealircd sends V3 tags from a JSON log file to the mirc client when activating the CAP REQ however mirc is not storing the information broken down from the JSON file for me to recall as I need it.

When I do $msgtags(0) I get 3:

1)
unrealircd.org/json-log => {"timestamp":"2023-04-06T18:26:53.310Z","level":"info","subsystem":"connect","event_id":"LOCAL_CLIENT_CONNECT","log_source":"irc--.com","msg":"Client\sconnecting:\sA\s[vhost:\s2CB78EC1.1D514AA.3F368099.IP]\s[class:\sclients]\s[country:\s??]\s[reputation:\s0]\s[security-groups:\sunknown-users,webirc-users]","client":{"name":"A","id":"0011FFF8H","hostname":"??","ip":"??","details":"??","server_port":6667,"client_port":39506,"connected_since":"2023-04-06T18:26:51.000Z","idle_since":"2023-04-06T18:26:51.000Z","user":{"username":"DC","realname":"[*/F]","vhost":"2CB78EC1.1D514AA.3F368099.IP","cloakedhost":"2CB78EC1.1D514AA.3F368099.IP","servername":"irc-.com","reputation":0,"security-groups":["unknown-users","webirc-users"],"modes":"iwxT","channels":[]},"geoip":{"country_code":"??"}},"extended_client_info":"[vhost:\s2CB78EC1.1D514AA.3F368099.IP]\s[class:\sclients]\s[country:\s??]\s[reputation:\s0]\s[security-groups:\sunknown-users,webirc-users]"}

2) msgid => e0JbcMDEBG2HKYxuvB6ktd
3) time => 2023-04-06T18:36:12.331Z

When i set it to 1 or unrealircd.org/json-log , i seem to have to process the entire chunk to get what i want rather than just do $msgtags(subsystem).key

Is this intended or a bug of mirc not really storing the information and if its not a bug, what am I doing wrong to not get the information I want from the msgtag

Thx

--
Version 7.72
Connect or make a latest unrealircd server with json logging, connect, oper up, send //QUOTE CAP REQ unrealircd.org/json-log , use $msgtags on the data

Last edited by Desolator; 06/04/23 06:48 PM.
Joined: Jul 2006
Posts: 4,149
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
Hello, mIRC is working correctly, you can read the documentation about this tag message in here, it's also clear from here that you need to parse the json yourself.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel

Link Copied to Clipboard