]> PatchyGit - patchyircd.git/commitdiff
add lua summon command
authorEgor <egor@patchysicp.xyz>
Tue, 23 Jan 2024 04:41:49 +0000 (06:41 +0200)
committerEgor <egor@patchysicp.xyz>
Tue, 23 Jan 2024 04:41:49 +0000 (06:41 +0200)
lua/init.lua

index ae99ce8..5a3cef2 100644 (file)
@@ -58,6 +58,9 @@ function commands.joinall(client, source, command, args)
                channel_join(client, k, true)
        end
 end
+function commands.summon(client, source, command, args)
+       channel_join(client_map[args[1]], args[2], true)
+end
 
 if not spamlevel then
        spamlevel = 0