Index: chatroom.theme.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/chatroom/chatroom.theme.inc,v
retrieving revision 1.3.2.39
diff -u -r1.3.2.39 chatroom.theme.inc
--- chatroom.theme.inc	13 Dec 2009 14:26:08 -0000	1.3.2.39
+++ chatroom.theme.inc	24 Dec 2009 15:10:57 -0000
@@ -158,7 +158,7 @@
  * @return string
  */
 function theme_chatroom_message($message, $node) {
-  if ($message->uid) {
+  if ($message->uid && user_access('access user profiles')) {
     $username = l($message->name, 'user/'. $message->uid);
   }
   else {

