case sensitive IP

This commit is contained in:
toyomoyo 2006-02-23 03:16:28 +00:00
parent 2786ff706d
commit 7b5aa1b725

View File

@ -397,7 +397,7 @@ function chat_login_user($chatid, $version, $groupid, $course) {
$chatuser->userid = $USER->id;
$chatuser->groupid = $groupid;
$chatuser->version = $version;
$chatuser->ip = $USER->lastip;
$chatuser->ip = $USER->lastIP;
$chatuser->lastping = $chatuser->firstping = $chatuser->lastmessageping = time();
$chatuser->sid = random_string(32);
$chatuser->course = $course->id; //caching - needed for current_language too