From eb8debe48e4ca6a74831419fb21e293434d06629 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Sat, 24 Sep 2022 06:17:38 -0500 Subject: [PATCH] Remove squirrel thread testing script file --- scripts/server/thread.nut | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 scripts/server/thread.nut diff --git a/scripts/server/thread.nut b/scripts/server/thread.nut deleted file mode 100644 index 0fe5afb0..00000000 --- a/scripts/server/thread.nut +++ /dev/null @@ -1,25 +0,0 @@ -// =========================================================================== -// Asshat Gaming Roleplay -// https://github.com/VortrexFTW/agrp_main -// (c) 2022 Asshat Gaming -// =========================================================================== -// FILE: thread.nut -// DESC: Provides threaded functions (used in Squirrel since JavaScript thread hacks don't work) -// TYPE: Server (Squirrel) -// =========================================================================== - -bindEventHandler("OnResourceStart", thisResource, function(event, resource) { - emailThread <- newthread(sendEmail); - - exportFunction("sendEmail", function(smtpHost, smtpPort, useTLS, smtpUser, smtpPassword, toEmail, toName, subject, body, fromEmail, fromName) { - emailThread.call(smtpHost, smtpPort, useTLS, smtpUser, smtpPassword, toEmail, toName, subject, body, fromEmail, fromName); - }); -}); - -// =========================================================================== - -function sendEmail(smtpHost, smtpPort, useTLS, smtpUser, smtpPassword, toEmail, toName, subject, body, fromEmail, fromName) { - module.smtp.send(smtpHost, smtpPort, useTLS, smtpUser, smtpPassword, toEmail, toName, subject, body, fromEmail, fromName); -} - -// =========================================================================== \ No newline at end of file