From 29a2cc38da7221b5350623b489abb28a50d8d8ee Mon Sep 17 00:00:00 2001 From: Miteruzo Date: Fri, 30 Jun 2023 23:39:28 +0900 Subject: [PATCH] chat --- modules/chat.mod.hsp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/modules/chat.mod.hsp b/modules/chat.mod.hsp index c3a464f..040b902 100644 --- a/modules/chat.mod.hsp +++ b/modules/chat.mod.hsp @@ -1,9 +1,9 @@ #module \ Chat -#define URL ("http://miteruzo.ml/goatoh_training/chat.php") +#define URL ("https://miteruzo.ml/goatoh_training/chat.php") -#defcfunc \ +#defcfunc local \ New \ int p_id id.insNum = p_id @@ -12,11 +12,12 @@ New \ Return insNum - 1 -#deffunc \ +#deffunc local \ Send \ + int p_insId,\ str p_message - int p_insId - HTTPLoad URL, StrF ("id=%d&text=%s", id.p_insId, p_message) + HTTPLoad@ URL + StrF ("?id=%d&text=%s", id.p_insId, p_message) + HTTPInfo _, HTTPINFO_MODE Return