]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
webhook: typo preventing unwatch
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 31 May 2021 10:40:37 +0000 (12:40 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 31 May 2021 11:20:43 +0000 (13:20 +0200)
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?