summaryrefslogtreecommitdiff
path: root/src/core/cs_akick.c
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-03-31 04:41:44 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-03-31 04:41:44 +0000
commit94822c99c0bc84756ee0870b7d39c6410ed9184a (patch)
treeceef914590a40c3d03973f938b791b01d7dd8fed /src/core/cs_akick.c
parenta3347b59a1f103d265c68c5880f9dabee1bbfd6a (diff)
Added last used time to akick view
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2846 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/cs_akick.c')
-rw-r--r--src/core/cs_akick.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/cs_akick.c b/src/core/cs_akick.c
index 355dd09ee..f73360769 100644
--- a/src/core/cs_akick.c
+++ b/src/core/cs_akick.c
@@ -114,6 +114,13 @@ int akick_view(User * u, int index, ChannelInfo * ci, int *sent_header)
((akick->HasFlag(AK_ISNICK)) ? akick->nc->display : akick->mask.c_str()),
!akick->creator.empty() ? akick->creator.c_str() : getstring(u, UNKNOWN), timebuf,
(!akick->reason.empty() ? akick->reason.c_str() : getstring(u, NO_REASON)));
+ if (akick->last_used)
+ {
+ char last_used[64];
+ tm = *localtime(&akick->last_used);
+ strftime_lang(last_used, sizeof(last_used), u, STRFTIME_SHORT_DATE_FORMAT, &tm);
+ notice_lang(Config.s_ChanServ, u, CHAN_AKICK_LAST_USED, last_used);
+ }
return 1;
}