[srvx-commits] CVS: services/src opserv.c,1.187.2.49,1.187.2.50
Brought to you by:
entrope
From: Miles P. <pet...@us...> - 2001-08-24 03:13:42
|
Update of /cvsroot/srvx/services/src In directory usw-pr-cvs1:/tmp/cvs-serv7312 Modified Files: Tag: rel-1_0 opserv.c Log Message: since services will probably run in a common timezone (in relation to its users), we should just use localtime() instead of gmtime() Index: opserv.c =================================================================== RCS file: /cvsroot/srvx/services/src/opserv.c,v retrieving revision 1.187.2.49 retrieving revision 1.187.2.50 diff -C2 -r1.187.2.49 -r1.187.2.50 *** opserv.c 2001/08/21 01:27:32 1.187.2.49 --- opserv.c 2001/08/24 03:13:37 1.187.2.50 *************** *** 544,548 **** OPSERV_NEED_CHANNEL(); (void)argc; opserv_notice(user, "%s Statistics", channel->name); ! strftime(buffer, sizeof(buffer), "Created on: %a %b %d %H:%M:%S %Y", gmtime(&channel->timestamp)); opserv_notice(user, "%s", buffer); strcpy(buffer, "Modes: "); --- 544,548 ---- OPSERV_NEED_CHANNEL(); (void)argc; opserv_notice(user, "%s Statistics", channel->name); ! strftime(buffer, sizeof(buffer), "Created on: %a %b %d %H:%M:%S %Y", localtime(&channel->timestamp)); opserv_notice(user, "%s", buffer); strcpy(buffer, "Modes: "); *************** *** 550,554 **** opserv_notice(user, "%s", buffer); if (channel->topic_time > 1) { ! strftime(buffer, sizeof(buffer), "Topic: `%%s$o' set by %%s (%a %b %d %H:%M:%S %Y)", gmtime(&channel->topic_time)); opserv_notice(user, buffer, channel->topic, channel->topic_nick); } else { --- 550,554 ---- opserv_notice(user, "%s", buffer); if (channel->topic_time > 1) { ! strftime(buffer, sizeof(buffer), "Topic: `%%s$o' set by %%s (%a %b %d %H:%M:%S %Y)", localtime(&channel->topic_time)); opserv_notice(user, buffer, channel->topic, channel->topic_nick); } else { *************** *** 560,564 **** for (n = 0; n < channel->banlist.used; n++) { ban = channel->banlist.list[n]; ! strftime(buffer, sizeof(buffer), "%%s by %%s (%a %b %d %H:%M:%S %Y)", gmtime(&ban->set)); opserv_notice(user, buffer, ban->ban, ban->who); } --- 560,564 ---- for (n = 0; n < channel->banlist.used; n++) { ban = channel->banlist.list[n]; ! strftime(buffer, sizeof(buffer), "%%s by %%s (%a %b %d %H:%M:%S %Y)", localtime(&ban->set)); opserv_notice(user, buffer, ban->ban, ban->who); } *************** *** 3221,3225 **** gtrace_print_func(struct gline *gline, void *extra) { ! char *when_text = asctime(gmtime(&gline->expires)); when_text[strlen(when_text)-1] = 0; /* strip lame \n */ opserv_notice(extra, OSMSG_GTRACE_FORMAT, gline->target, gline->issuer, when_text, gline->reason); --- 3221,3225 ---- gtrace_print_func(struct gline *gline, void *extra) { ! char *when_text = asctime(localtime(&gline->expires)); when_text[strlen(when_text)-1] = 0; /* strip lame \n */ opserv_notice(extra, OSMSG_GTRACE_FORMAT, gline->target, gline->issuer, when_text, gline->reason); |