summaryrefslogtreecommitdiffstats
path: root/modules/clock.py
diff options
context:
space:
mode:
authorSean B. Palmer <http://inamidst.com/sbp/>2008-02-23 12:16:43 +0000
committerSean B. Palmer <http://inamidst.com/sbp/>2008-02-23 12:16:43 +0000
commit2fb00589439a4efb3906d4e681e7ed815dcd180a (patch)
tree0a6b0ff1a4b5697fc7c3cb0aa3dc934246fcb874 /modules/clock.py
parent7931fab14599b739c18c8f1ebcc24b75688dbc09 (diff)
downloadbot-2fb00589439a4efb3906d4e681e7ed815dcd180a.tar.gz
bot-2fb00589439a4efb3906d4e681e7ed815dcd180a.tar.bz2
bot-2fb00589439a4efb3906d4e681e7ed815dcd180a.zip
Lots of fixes, changes, and new goodies.
Diffstat (limited to 'modules/clock.py')
-rwxr-xr-xmodules/clock.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/clock.py b/modules/clock.py
index 210f8fb..9e38d7b 100755
--- a/modules/clock.py
+++ b/modules/clock.py
@@ -187,7 +187,7 @@ TimeZones.update(TZ1)
@deprecated
def f_time(self, origin, match, args):
""".t [ <timezone> ] - Returns the current time"""
- tz = match.group(1) or 'GMT'
+ tz = match.group(2) or 'GMT'
# Personal time zones, because they're rad
if hasattr(self.config, 'timezones'):
@@ -196,7 +196,7 @@ def f_time(self, origin, match, args):
if People.has_key(tz):
tz = People[tz]
- elif (not match.group(1)) and People.has_key(origin.nick):
+ elif (not match.group(2)) and People.has_key(origin.nick):
tz = People[origin.nick]
TZ = tz.upper()