]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/webhook.rb
webhook: typo preventing unwatch
[user/henk/code/ruby/rbot.git] / data / rbot / plugins / webhook.rb
index 06b25cfb1d926cdd8a888fc8f8dbace893bd83b8..6e8acb9278a8bd2115ee943dcdc7b111ca016298 100644 (file)
@@ -335,7 +335,7 @@ class WebHookPlugin < Plugin
     repo = params[:repo]
     chan = (params[:chan] || m.replyto).downcase
 
-    if @repo.has_key?(repo)
+    if @repos.has_key?(repo)
       @repos[repo].delete(chan)
       m.okay
       if @repos[repo].empty?