diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-02-25 10:18:00 +0100 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-02-25 10:18:00 +0100 |
commit | 4f8c7f7187e5627319f10206579df9164768d648 (patch) | |
tree | 3062c230201a32db47df262091ba9c6e13706300 /data/rbot/plugins/twitter.rb | |
parent | ee14034b131b68a6f213612c2a9882e942f31e47 (diff) |
twitter plugin: twitter actions off was not working
Since the twitter plugin is set to store strings, 'false' was stored (and
restored) as a string instead of a boolean value. Fix by deleting the key
instead of setting it to false.
Diffstat (limited to 'data/rbot/plugins/twitter.rb')
-rw-r--r-- | data/rbot/plugins/twitter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/twitter.rb b/data/rbot/plugins/twitter.rb index 0aabe660..a5ca23f8 100644 --- a/data/rbot/plugins/twitter.rb +++ b/data/rbot/plugins/twitter.rb @@ -165,7 +165,7 @@ class TwitterPlugin < Plugin @registry[m.sourcenick + "_actions"] = true m.okay when 'off' - @registry[m.sourcenick + "_actions"] = false + @registry.delete(m.sourcenick + "_actions") m.okay else if @registry[m.sourcenick + "_actions"] |