Forgot to remove some debug output
This commit is contained in:
parent
f29a9e6e66
commit
22bb8c52ea
2
chat.php
2
chat.php
@ -92,9 +92,7 @@ if (is_empty($VARS['msg'])) {
|
|||||||
foreach ($privmsgto as $to) {
|
foreach ($privmsgto as $to) {
|
||||||
$name = str_replace("@", "", $to); // Remove leading @
|
$name = str_replace("@", "", $to); // Remove leading @
|
||||||
if ($database->has('players', ['nickname' => $name])) {
|
if ($database->has('players', ['nickname' => $name])) {
|
||||||
echo $name;
|
|
||||||
$touuid = $database->select('players', ['uuid'], ['nickname' => $name])[0]['uuid'];
|
$touuid = $database->select('players', ['uuid'], ['nickname' => $name])[0]['uuid'];
|
||||||
echo $touuid;
|
|
||||||
$database->insert('private_messages', ['#time' => 'NOW()', 'message' => $msg, 'from_uuid' => $_SESSION['uuid'], 'to_uuid' => $touuid]);
|
$database->insert('private_messages', ['#time' => 'NOW()', 'message' => $msg, 'from_uuid' => $_SESSION['uuid'], 'to_uuid' => $touuid]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user