diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2012-11-09 22:36:01 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2012-12-01 10:54:16 +0100 |
commit | 314462d8352a6b5ea1fd27ce1bb21cb0a8fb1310 (patch) | |
tree | a2d1bbcf9e3559868d58e9bfc08aa6fd93a0c370 | |
parent | a16b9d17da1349ab1f4fe517984ea36aef34e923 (diff) | |
download | forums-314462d8352a6b5ea1fd27ce1bb21cb0a8fb1310.tar forums-314462d8352a6b5ea1fd27ce1bb21cb0a8fb1310.tar.gz forums-314462d8352a6b5ea1fd27ce1bb21cb0a8fb1310.tar.bz2 forums-314462d8352a6b5ea1fd27ce1bb21cb0a8fb1310.tar.xz forums-314462d8352a6b5ea1fd27ce1bb21cb0a8fb1310.zip |
[ticket/10184] Disable receiving pms for bots by default
PHPBB3-10184
-rw-r--r-- | phpBB/install/database_update.php | 6 | ||||
-rw-r--r-- | phpBB/install/install_install.php | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/phpBB/install/database_update.php b/phpBB/install/database_update.php index 399ad3429a..8e23434b5b 100644 --- a/phpBB/install/database_update.php +++ b/phpBB/install/database_update.php @@ -2171,6 +2171,12 @@ function change_database_data(&$no_updates, $version) } } + // Disable receiving pms for bots + $sql = 'UPDATE ' . USERS_TABLE . ' + SET user_allow_pm = 0 + WHERE user_type = ' . USER_IGNORE; + $db->sql_query($sql); + $no_updates = false; break; } diff --git a/phpBB/install/install_install.php b/phpBB/install/install_install.php index 67ebb8b1c5..0575b58d92 100644 --- a/phpBB/install/install_install.php +++ b/phpBB/install/install_install.php @@ -1859,6 +1859,7 @@ class install_install extends module 'user_timezone' => 0, 'user_dateformat' => $lang['default_dateformat'], 'user_allow_massemail' => 0, + 'user_allow_pm' => 0, ); $user_id = user_add($user_row); |