]> git.mjollnir.org Git - moodle.git/commit
mod/chat - cope with missing $USER->lastIP
authormartinlanghoff <martinlanghoff>
Tue, 18 Apr 2006 22:40:56 +0000 (22:40 +0000)
committermartinlanghoff <martinlanghoff>
Tue, 18 Apr 2006 22:40:56 +0000 (22:40 +0000)
commitd13ef2fbdcd0e22749598d65f3b1c88965a2798f
tree32b8bbded53c4ec62b50b3a4edeeb11e45cd740b
parent9977aa0f4a55da68946998078ca59fbb565fcc69
mod/chat - cope with missing $USER->lastIP

$USER->lastIP is sometimes not set properly during login, fetch it if we can
or error out clearly -- we won't be able to login the user to the chat if
we don't have an IP address to match him/her against.
mod/chat/lib.php