# HG changeset patch # User Kim Alvefur # Date 1605364797 -3600 # Node ID 7130d5ec115c0f8086775b7e08ad6ad40c25dd5c # Parent 2309402dd3cbbe24f5c28dc874a992993319a7dd clix.raw: Allow specifying extra plugins to load diff -r 2309402dd3cb -r 7130d5ec115c clix/raw.lua --- a/clix/raw.lua Sat Nov 14 15:39:16 2020 +0100 +++ b/clix/raw.lua Sat Nov 14 15:39:57 2020 +0100 @@ -116,5 +116,11 @@ end end - return clix_connect(opts, on_connect); + local plugins = {}; + for i=#args,1,-1 do + if args[i]:sub(1,1) == "+" then + table.insert(plugins, table.remove(args, i):sub(2)) + end + end + return clix_connect(opts, on_connect, plugins); end