CTCP TIME reply [bug fix]

Back to PHP-IRC Bugs

Page: 1  
From User Message Body
TRON
Post #587
Member
Date: 8:32 pm, Jul 30 2007
Posts: 2


From what I have seen from various IRC clients they normally use the format of:

(Three character day) (Three character month) (two digit day) (two digit hour):(two digit minute):(two digit second) (four digit year)

for the CTCP TIME reply like these examples below:

Mon Jul 30 22:22:01 2007 (irssi)
Mon Jul 30 15:26:54 2007 (mIRC)
Mon Jul 30 16:27:34 (xchat, only one I've seen not show a year)

So, to make PHP-IRC more compatible with everybody else I thought it would be nice to have that fixed:

Change this code in irc.php around line 1852 (v2.2.1)

Code

$msg = "My current time is " . date("l, F jS, Y @ g:i a O", time()) . ".";


to this

Code

$msg = date("D M d H:i:s Y");


Now that should make PHP-IRC bot 100% compliant with all other IRC clients out there. :)

Blank
Post #649
Member
Date: 11:30 am, Dec 1 2007
Posts: 4


shouldn't "TIME " be prefixed onto the front of that msg?

-----------
Just another friendly aussie php-irc user...
Blank
Post #650
Member
Date: 11:42 am, Dec 1 2007
Posts: 4


infact, on closer inspection, almost all the ctcp replies need to have the text prefixed to them :S

-----------
Just another friendly aussie php-irc user...
fifa15coins
Post #1155
Member
Date: 7:31 am, Jul 15 2015
Posts: 24


a balanced and silks, capture from flash, suddenly, the shield trueshot, punishment of Aion Gold dark, spirit damage, weakened after can put any skills is the shield skills preferred. Assassin and Ranger have a skills evasion of one hundred percent, and if you are not master the general will first open that what he www.vipaionkinah.com failed to Aion Gold capture after, if close behind shields trueshot directly, skills, and a shield skills words first put the shield; If you don't


   

Back to PHP-IRC Bugs