summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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