Skip to content
Snippets Groups Projects
Commit b07f6fab authored by deuce's avatar deuce
Browse files

Synchronet crashes when given an invalid strftime string apparently.

parent 76c523b4
No related branches found
No related tags found
No related merge requests found
...@@ -807,8 +807,8 @@ function handle_ctcp(prefix,message) { ...@@ -807,8 +807,8 @@ function handle_ctcp(prefix,message) {
case "TIME": case "TIME":
from_nick=get_highlighted_nick(prefix,message); from_nick=get_highlighted_nick(prefix,message);
to_nick=get_nick(prefix); to_nick=get_nick(prefix);
sock.send("NOTICE "+to_nick+" :\x01TIME "+strftime("%A, %B %d, %I:%M:%S%p, %G %Z",time())+"\x01\r\n"); sock.send("NOTICE "+to_nick+" :\x01TIME "+strftime("%A, %B %d, %I:%M:%S%p, %Y %Z",time())+"\x01\r\n");
screen.print_line(">"+from_nick+"<"+" CTCP TIME Reply: "+strftime("%A, %B %d, %I:%M:%S%p, %G %Z",time() )); screen.print_line(">"+from_nick+"<"+" CTCP TIME Reply: "+strftime("%A, %B %d, %I:%M:%S%p, %Y %Z",time() ));
break; break;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment