summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--includes/chats.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/chats.php b/includes/chats.php
index 4ecf6ce..6a36fe3 100644
--- a/includes/chats.php
+++ b/includes/chats.php
@@ -4,11 +4,13 @@
*/
include_once('sqli.php');
-define('CHAT_ROWS_TO_KEEP', 30);
+define('CHAT_ROWS_TO_KEEP', 50);
function addChat($userID, $message) {
global $mysqli;
+ if ($message == '')
+ return;
$stmt = $mysqli->prepare("INSERT INTO `chat`
(`userID`, `message`)