taskWeeChat - Tasks: task #12255, "server-time" capability...


task #12255: "server-time" capability support

Submitter:  grawity <grawity>
Submitted:  Mon 24 Sep 2012 01:45:42 PM UTC
Category:  irc plugin Should Start On:  Mon 24 Sep 2012 12:00:00 AM UTC
Should be Finished on:  Mon 24 Sep 2012 12:00:00 AM UTC Priority:  * 1 - Later
Status:  Done Privacy:  Public
Assigned to:  flashcode Percent Complete:  100%
Originator Name:  Open/Closed:  Closed
Planned Release:  0.4.0 IRC nick: 
* Mandatory Fields

Add a New Comment Rich Markup

Sat 24 Nov 2012 02:32:58 PM UTC, comment #4: 

Hi Alexey,

OK, this is not a problem: the "znc.in/server-time-iso" has to be set by user, so the "znc.in" can be easily removed (it's not hardcoded in any way in WeeChat).

If something changes in znc before release, I can still make changes in WeeChat, if needed.
Feel free to ping me on IRC (or add a comment in this task) if something has to be changed in WeeChat.

Sebastien Helleu <flashcode>
Group administrator
Sat 24 Nov 2012 02:08:13 PM UTC, comment #3: 

znc.in/ namespace is temporary, it will be dropped when ircv3.2 is finalized. For now, it still may be changed, and switch from unix timestamp to ISO timestamp was such change.

Alexey Sokolov <darthgandalf>
Sat 24 Nov 2012 08:46:02 AM UTC, comment #2: 

The date format in znc is now ISO 8601, so the command to enable capability is:

/set irc.server.znc.capabilities "znc.in/server-time-iso"

WeeChat is now able to auto-detect format (timestamp or ISO 8601).

Sebastien Helleu <flashcode>
Group administrator
Fri 23 Nov 2012 08:33:42 PM UTC, comment #1: 

For a server called "znc" in WeeChat, following command will enable the "server-time" capability:

/set irc.server.znc.capabilities "znc.in/server-time"

Sebastien Helleu <flashcode>
Group administrator
Mon 24 Sep 2012 01:45:42 PM UTC, original submission:  

Latest Git version of ZNC supports an IRC protocol extension to forward the original message timestamp (for delayed messages) to attached clients. It would be useful to have this supported in WeeChat.

(Originally requested on IRC by nyuszika7h.)

Previously, when a bouncer had to send delayed messages to the client, it would prefix/suffix the original receive time to the message text itself; e.g.

<-- :n!u@h PRIVMSG #weechat :[16:32] Hi everyone!

The new "server-time" capability, as implemented by ZNC, modifies the protocol itself while leaving the message text intact:

--> CAP REQ :server-time
<-- CAP ACK grawity :server-time
<-- @time=1348493754.432 :n!u@h PRIVMSG #weechat :Hi everyone!

The general syntax for "@tag=value" is described in the IRCv3 "message-tags" specification.

The "time" tag is described in the IRCv3 "server-time" extension. (Summary: The tag's value is a Unix timestamp.)

grawity <grawity>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by seschwar
  • -email is unavailable- added by darthgandalf (Posted a comment)
  • -email is unavailable- added by flashcode (Posted a comment)
  • -email is unavailable- added by grawity (Submitted the item)
  • -email is unavailable- added by grawity

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-01-20 flashcode Open/ClosedOpen Closed
    2013-01-08 seschwar Carbon-Copy- Added seschwar
    2012-11-23 flashcode StatusNone Done
        Percent Complete0% 100%
        Assigned toNone flashcode
        Planned ReleaseNone 0.4.0
    2012-09-24 grawity Carbon-Copy- Added nyuszika7h

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code