From 4f8c7f7187e5627319f10206579df9164768d648 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Mon, 25 Feb 2008 10:18:00 +0100 Subject: 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. --- data/rbot/plugins/twitter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data/rbot/plugins/twitter.rb') 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"] -- cgit v1.2.3