diff options
-rw-r--r-- | include/language.h | 4 | ||||
-rw-r--r-- | modules/commands/cs_access.cpp | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/include/language.h b/include/language.h index 20bd36a77..91bc462cb 100644 --- a/include/language.h +++ b/include/language.h @@ -64,10 +64,8 @@ #define CHAN_ACCESS_LEVEL_RANGE _("Access level must be between %d and %d inclusive.") #define CHAN_ACCESS_LIST_HEADER _("Access list for %s:\n" \ " Num Lev Mask") -#define CHAN_ACCESS_VIEW_XOP_FORMAT _(" %3d %s %s\n" \ - " by %s, last seen %s") #define CHAN_ACCESS_VIEW_AXS_FORMAT _(" %3d %4d %s\n" \ - " by %s, last seen %s") + " by %s on %s, last seen %s") #define CHAN_AKICK_VIEW_FORMAT _("%3d %s (by %s on %s)\n" \ " %s") #define CHAN_INFO_HEADER _("Information for channel \002%s\002:") diff --git a/modules/commands/cs_access.cpp b/modules/commands/cs_access.cpp index d03f165f8..7f62610ef 100644 --- a/modules/commands/cs_access.cpp +++ b/modules/commands/cs_access.cpp @@ -213,10 +213,10 @@ class AccessViewCallback : public AccessListCallback if (access->last_seen == 0) timebuf = "Never"; else - timebuf = do_strftime(access->last_seen); + timebuf = do_strftime(access->last_seen, NULL, true); } - source.Reply(CHAN_ACCESS_VIEW_AXS_FORMAT, Number + 1, AccessChanAccess::DetermineLevel(access), access->mask.c_str(), access->creator.c_str(), timebuf.c_str()); + source.Reply(CHAN_ACCESS_VIEW_AXS_FORMAT, Number + 1, AccessChanAccess::DetermineLevel(access), access->mask.c_str(), access->creator.c_str(), do_strftime(access->created, NULL, true).c_str(), timebuf.c_str()); } }; |