|
|
@@ -120,11 +120,7 @@ static void tell_who(struct userrec *u, int idx, int chan)
|
|
|
ok = 1;
|
|
|
dprintf(idx, "Bots connected:\n");
|
|
|
}
|
|
|
-#ifdef S_UTCTIME
|
|
|
egg_strftime(s, 14, "%d %b %H:%M %Z", gmtime(&dcc[i].timeval));
|
|
|
-#else /* !S_UTCTIME */
|
|
|
- egg_strftime(s, 14, "%d %b %H:%M %Z", localtime(&dcc[i].timeval));
|
|
|
-#endif /* S_UTCTIME */
|
|
|
if (atr & USER_OWNER) {
|
|
|
egg_snprintf(format, sizeof format, " [%%.2lu] %%s%%c%%-%us (%%s) %%s\n",
|
|
|
nicklen);
|
|
|
@@ -1318,21 +1314,15 @@ static void cmd_console(struct userrec *u, int idx, char *par)
|
|
|
|
|
|
static void cmd_date(struct userrec *u, int idx, char *par)
|
|
|
{
|
|
|
- char date[50] = "", utctime[50] = "", ltime[50] = "";
|
|
|
+ char date[50] = "";
|
|
|
time_t hub;
|
|
|
|
|
|
putlog(LOG_CMDS, "*", "#%s# date", dcc[idx].nick);
|
|
|
|
|
|
egg_strftime(date, sizeof date, "%c %Z", localtime(&now));
|
|
|
-#ifndef S_UTCTIME
|
|
|
- sprintf(ltime, "<-- This time is used on the bot.");
|
|
|
-#endif /* !S_UTCTIME */
|
|
|
- dprintf(idx, "%s %s\n", date, (ltime && ltime[0]) ? ltime : "");
|
|
|
+ dprintf(idx, "%s (local shell time)\n", date);
|
|
|
egg_strftime(date, sizeof date, "%c %Z", gmtime(&now));
|
|
|
-#ifdef S_UTCTIME
|
|
|
- sprintf(utctime, "<-- This time is used on the bot.");
|
|
|
-#endif /* S_UTCTIME */
|
|
|
- dprintf(idx, "%s %s\n", date, (utctime && utctime[0]) ? utctime : "");
|
|
|
+ dprintf(idx, "%s <-- This time is use don the bot.\n", date);
|
|
|
|
|
|
hub = now + timesync;
|
|
|
egg_strftime(date, sizeof date, "%c %Z", gmtime(&hub));
|