Closed Bug 955448 Opened 11 years ago Closed 10 years ago

Change behavior of /time command

Categories

(Chat Core :: IRC, defect)

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: benediktp, Assigned: clokep, Mentored)

Details

(Whiteboard: [good first bug])

Attachments

(1 file)

*** Original post on bio 2011 at 2013-06-21 22:02:00 UTC *** The response to the /time IRC command isn't handled as it seems: Timestamp: 21.06.2013 23:57:58 Warning: Unhandled IRC message: :gravel.mozilla.org 391 Mic gravel.mozilla.org :Friday June 21 2013 -- 14:57 -07:00 Source File: resource://gre/components/irc.js Line: 684 Source Code: prpl-irc
*** Original post on bio 2011 at 2013-06-21 23:59:40 UTC *** I was under the mistaken impression that the /time command was returning the local time of a user. It's actually returning the local time of the IRC server (which is most likely completely useless information?). "/time <nick>" should request the time via CTCP ("/ctcp <nick> TIME") instead and it was suggested [1] that with no parameter it could still show the server time. [1] http://log.bezut.info/instantbird/130621#m868
Summary: Unhandled IRC message: 391 → Change behavior of /time command
Whiteboard: [mentor=clokep][good first bug]
Mentor: clokep
Whiteboard: [mentor=clokep][good first bug] → [good first bug]
Attached patch PatchSplinter Review
Simple patch that fixes /time to send to the server OR to a person. Displays the results appropriately.
Assignee: nobody → clokep
Status: NEW → ASSIGNED
Attachment #8561065 - Flags: review?(aleth)
Comment on attachment 8561065 [details] [diff] [review] Patch Review of attachment 8561065 [details] [diff] [review]: ----------------------------------------------------------------- Thanks! ::: chat/protocols/irc/ircBase.jsm @@ +1081,5 @@ > "391": function(aMessage) { // RPL_TIME > // <server> :<string showing server's local time> > + > + let msg = _("ctcp.time", aMessage.params[1], aMessage.params[2]); > + // Show the date returned from the server, not that this doesn't use typo: s/not/note
Attachment #8561065 - Flags: review?(aleth) → review+
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → 1.6
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: