From 091ff90cfb35878af4ae45e0176e0081480b26a6 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sun, 22 Aug 2004 08:06:39 +0000 Subject: [PATCH] Added day and monthname. --- plugins/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/__init__.py b/plugins/__init__.py index 318c3d7f8..e5b47a8c0 100644 --- a/plugins/__init__.py +++ b/plugins/__init__.py @@ -404,7 +404,9 @@ def standardSubstitute(irc, msg, text, env=None): 'rand': randInt, 'randint': randInt, 'randomint': randInt, 'year': localtime[0], 'month': localtime[1], + 'monthname': time.strftime('%b', localtime), 'date': localtime[2], + 'day', time.strftime('%A', localtime), 'h': localtime[3], 'hr': localtime[3], 'hour': localtime[3], 'm': localtime[4], 'min': localtime[4], 'minute': localtime[4], 's': localtime[5], 'sec': localtime[5], 'second': localtime[5],