Add username, username pair to exceptions for new members

This commit is contained in:
Ceda EI 2018-09-11 00:46:59 +05:30
parent b808d36a7b
commit c3c0ce811d
1 changed files with 2 additions and 0 deletions

View File

@ -56,6 +56,8 @@ function new_member() {
$user_id = $member->{"id"};
$query = "INSERT INTO users (user_id, username, follows) values($user_id, '$username', -1);";
$conn->query($query);
$query = "INSERT INTO exceptions (username, username) values('$username', '$username');";
$conn->query($query);
$lastmember = include('lastmember.php');
$text = "Welcome @$username,\n";
$text .= "\n";