diff options
Diffstat (limited to 'src/cmd_time.cpp')
-rw-r--r-- | src/cmd_time.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/cmd_time.cpp b/src/cmd_time.cpp index 4897110a4..054e469fa 100644 --- a/src/cmd_time.cpp +++ b/src/cmd_time.cpp @@ -69,7 +69,12 @@ void cmd_time::Handle (char **parameters, int pcnt, userrec *user) time(&rawtime); timeinfo = localtime(&rawtime); - WriteServ(user->fd,"391 %s %s :%s",user->nick,Config->ServerName,asctime(timeinfo)); + + char tms[26]; + snprintf(tms,26,"%s",asctime(timeinfo)); + tms[24] = 0; + + WriteServ(user->fd,"391 %s %s :%s",user->nick,Config->ServerName,tms); } |