Closed
Bug 955448
Opened 11 years ago
Closed 10 years ago
Change behavior of /time command
Categories
(Chat Core :: IRC, defect)
Chat Core
IRC
Tracking
(Not tracked)
RESOLVED
FIXED
1.6
People
(Reporter: benediktp, Assigned: clokep, Mentored)
Details
(Whiteboard: [good first bug])
Attachments
(1 file)
2.11 KB,
patch
|
aleth
:
review+
|
Details | Diff | Splinter Review |
*** 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
Reporter | ||
Comment 1•11 years ago
|
||
*** 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
Assignee | ||
Updated•11 years ago
|
Whiteboard: [mentor=clokep][good first bug]
Updated•10 years ago
|
Mentor: clokep
Whiteboard: [mentor=clokep][good first bug] → [good first bug]
Assignee | ||
Comment 2•10 years ago
|
||
Simple patch that fixes /time to send to the server OR to a person.
Displays the results appropriately.
Comment 3•10 years ago
|
||
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+
Assignee | ||
Comment 4•10 years ago
|
||
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.
Description
•