You are here

function rate_bots_register_bot in Rate 7

Register new bot.

Parameters

string $ip:

1 call to rate_bots_register_bot()
rate_bots_is_blocked in ./rate.bots.inc
Check if the current user is blocked.

File

./rate.bots.inc, line 79

Code

function rate_bots_register_bot($ip) {
  db_insert('rate_bot_ip')
    ->fields(array(
    'ip' => $ip,
  ))
    ->execute();
}