mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 23:07:39 +02:00
[ticket/10184] Disable receiving pms for bots by default
PHPBB3-10184
This commit is contained in:
@@ -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;
|
$no_updates = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@@ -1859,6 +1859,7 @@ class install_install extends module
|
|||||||
'user_timezone' => 0,
|
'user_timezone' => 0,
|
||||||
'user_dateformat' => $lang['default_dateformat'],
|
'user_dateformat' => $lang['default_dateformat'],
|
||||||
'user_allow_massemail' => 0,
|
'user_allow_massemail' => 0,
|
||||||
|
'user_allow_pm' => 0,
|
||||||
);
|
);
|
||||||
|
|
||||||
$user_id = user_add($user_row);
|
$user_id = user_add($user_row);
|
||||||
|
Reference in New Issue
Block a user