From 0c8294036a10082a584993e98f7ba9dcc547767c Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Sat, 7 Apr 2018 00:42:20 +0530 Subject: [PATCH] Fix leave causing 500. Fix welcome message syntax --- webhook.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/webhook.php b/webhook.php index b833b9b..bd64df2 100644 --- a/webhook.php +++ b/webhook.php @@ -58,10 +58,10 @@ function new_member() { $conn->query($query); $conn->close(); $lastmember = include('lastmember.php'); - $text = "Welcome $username,\n"; + $text = "Welcome @$username,\n"; $text .= "\n"; $text .= "Congratulations for following the chain all the way to here.\n"; - $text .= "To get started, read the rules @Bio_Chain_2_Rules and add @$lastmember to your bio.\n"; + $text .= "To get started, read the rules @Bio_Chain_2_Rules and add
@$lastmember
to your bio.\n"; $text .= "You can run /update to regenerate the chain.\n"; $text .= "\n"; $text .= "Have Fun"; @@ -69,6 +69,8 @@ function new_member() { } } +function member_exit() { +} function update() { send_html("Update started. New chain will only be send if the chain has changed. Please wait as this takes about a minute.");