Add username, username pair to exceptions for new members
This commit is contained in:
parent
b808d36a7b
commit
c3c0ce811d
|
@ -56,6 +56,8 @@ function new_member() {
|
||||||
$user_id = $member->{"id"};
|
$user_id = $member->{"id"};
|
||||||
$query = "INSERT INTO users (user_id, username, follows) values($user_id, '$username', -1);";
|
$query = "INSERT INTO users (user_id, username, follows) values($user_id, '$username', -1);";
|
||||||
$conn->query($query);
|
$conn->query($query);
|
||||||
|
$query = "INSERT INTO exceptions (username, username) values('$username', '$username');";
|
||||||
|
$conn->query($query);
|
||||||
$lastmember = include('lastmember.php');
|
$lastmember = include('lastmember.php');
|
||||||
$text = "Welcome @$username,\n";
|
$text = "Welcome @$username,\n";
|
||||||
$text .= "\n";
|
$text .= "\n";
|
||||||
|
|
Loading…
Reference in New Issue