mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2019
Posts: 5
8
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
8
Joined: Oct 2019
Posts: 5
I'm using a custom script to change the message output style of TEXT and INPUT events, and this is also appending timestamps to every message by feeding -t to echo. The problem is that the timestamp shown is the current time instead of using the time from the ZNC playback buffer. If I close mIRC and reopen it, ZNC will feed it the backlog, and the timestamp for every message is the current time instead.

Is there any way I can customize channel message styles while also showing the correct ZNC timestamps?

Also another quick unrelated question: Is there any way I can get the number of servers (not networks) present in servers.ini as a variable for mIRC scripting?

Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
$msgstamp has the time from znc

Joined: Oct 2019
Posts: 5
8
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
8
Joined: Oct 2019
Posts: 5
Thanks, that's just what I needed! Passing that to $asctime() did the trick. Now I'm wondering how to get the number of servers present in servers.ini so that I can iterate through them in a loop in another script...

Joined: Dec 2011
Posts: 18
J
Pikka bird
Offline
Pikka bird
J
Joined: Dec 2011
Posts: 18
Try using $ini(servers.ini,servers,0)

Joined: Oct 2019
Posts: 5
8
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
8
Joined: Oct 2019
Posts: 5
Originally Posted by JohnEricNO
Try using $ini(servers.ini,servers,0)

That worked, thanks!


Link Copied to Clipboard