From 63322013f2f02fe1d00dffcb1237fbae3211b468 Mon Sep 17 00:00:00 2001 From: Matthias Hecker Date: Sun, 29 Mar 2020 12:47:45 +0200 Subject: fix: plugins delegate disregarding all options given --- lib/rbot/plugins.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/rbot/plugins.rb b/lib/rbot/plugins.rb index 8621fe45..d231d7f2 100644 --- a/lib/rbot/plugins.rb +++ b/lib/rbot/plugins.rb @@ -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 -- cgit v1.2.3