Plugin system update

This commit is contained in:
bergware
2022-07-25 09:13:33 +02:00
parent b45b3a41f0
commit d20ad4ff8c
4 changed files with 8 additions and 4 deletions

View File

@@ -18,7 +18,8 @@ $console = $argv[$argc-1] != 'nchan'; // console or nchan output
$call = ['plg' => 'plugin', 'xml' => 'language', '' => 'language'];
function done() {
write('_DONE_');
global $console;
if (!$console) write('_DONE_');
exit(0);
}
function write($message){