]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
fix: plugins delegate disregarding all options given
authorMatthias Hecker <mail@apoc.cc>
Sun, 29 Mar 2020 10:47:45 +0000 (12:47 +0200)
committerMatthias Hecker <mail@apoc.cc>
Sun, 29 Mar 2020 10:47:45 +0000 (12:47 +0200)
lib/rbot/plugins.rb

index 8621fe45341456e485894a4768c8d8c298ae8257..d231d7f24f813fc0002a5fa03216c5b0f4ea40c9 100644 (file)
@@ -1001,7 +1001,7 @@ module Plugins
       sort_modules unless @sorted_modules
 
       opts = {}
-      opts.merge(args.pop) if args.last.class == Hash
+      opts.merge!(args.pop) if args.last.class == Hash
 
       m = args.first
       if BasicUserMessage === m