--- chatroom.module	2006/11/03 06:48:12	1.50.2.13
+++ chatroom.module	2006/11/09 05:44:42	1.50.2.14
@@ -1,5 +1,5 @@
 <?php
-// $Id: chatroom.module,v 1.50.2.13 2006/11/03 06:48:12 darrenoh Exp $
+// $Id: chatroom.module,v 1.50.2.14 2006/11/09 05:44:42 darrenoh Exp $
 
 /**
  * @file
@@ -393,10 +393,13 @@
  * Implementation of hook_block().
  */
 function chatroom_block($op = 'list', $delta = 0, $edit = array()) {
-  $types = array(array('chats',             'active chats'),
-                 array('chat rooms',         'active chat rooms'),
-                 array('online_chat_users', 'chat online list'),
-                 array('online_site_users', 'sitewide online list'));
+  $types = array(
+    array('chats',             'active chats'),
+    array('chat_rooms',        'active chat rooms'),
+    array('online_chat_users', 'chat online list'),
+    array('online_site_users', 'sitewide online list'),
+    array('command_list',      'chat commands'),
+  );
 
   switch ($op) {
     case 'list':
@@ -404,6 +407,7 @@
       $blocks[1]['info'] = t($types[1][1]);
       $blocks[2]['info'] = t($types[2][1]);
       $blocks[3]['info'] = t($types[3][1]);
+      $blocks[4]['info'] = t($types[4][1]);
       return $blocks;
 
     case 'configure':
@@ -420,6 +424,13 @@
       break;
 
     case 'view':
+      if ($types[$delta][0] == 'command_list' && user_access('administer chats') && arg(1) == 'chat') {
+        $block['subject'] = t('chat commands');
+        $block['content'] = '/kick (username)<br>';
+        $block['content'] .= '/ban (username)';
+        return $block;
+      }
+
       /**
        * Hack to set up cache files - can't find a way to do this on
        * enable/disable of chat room blocks.
@@ -480,7 +491,7 @@
         }
         $block['content'] = $content;
         return $block;
-     }
+      }
   }
 }
 
