summaryrefslogtreecommitdiff
path: root/data/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2010-10-04 21:19:23 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2010-10-04 21:19:23 +0200
commit1be43eaa6c5afbcedb36c4fb80e8b8799c75be90 (patch)
treef44515a0e946a2f8bf9632f47a7a936e0e8830d9 /data/rbot
parent7e196dbdcbe22e526cf2c63671ab63a017331a84 (diff)
time plugin: properly reset TZ in on_timezone
Diffstat (limited to 'data/rbot')
-rw-r--r--data/rbot/plugins/time.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/data/rbot/plugins/time.rb b/data/rbot/plugins/time.rb
index efea466f..4838a469 100644
--- a/data/rbot/plugins/time.rb
+++ b/data/rbot/plugins/time.rb
@@ -181,8 +181,9 @@ class TimePlugin < Plugin
def on_timezone(to_zone)
original_zone = ENV["TZ"]
ENV["TZ"] = to_zone
- return yield
+ ret = yield
ENV["TZ"] = original_zone
+ return ret
end
end