From: Lo?c C. <lo...@us...> - 2001-04-10 09:38:17
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/commands In directory usw-pr-cvs1:/tmp/cvs-serv12897/chat/lib/commands Modified Files: whois.cmd.php3 me.cmd.php3 banish.cmd.php3 announce.cmd.php3 Log Message: Changed a bit format_messages.lib.php3 and removed trailing whitespaces Index: whois.cmd.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/commands/whois.cmd.php3,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** whois.cmd.php3 2001/04/04 23:52:33 1.1 --- whois.cmd.php3 2001/04/10 09:38:14 1.2 *************** *** 62,66 **** } } // end of 'not a registered user' ! // It's a registered user -> define the script to launch the 'whois' popup else --- 62,66 ---- } } // end of 'not a registered user' ! // It's a registered user -> define the script to launch the 'whois' popup else Index: me.cmd.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/commands/me.cmd.php3,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** me.cmd.php3 2001/04/08 21:20:35 1.1 --- me.cmd.php3 2001/04/10 09:38:14 1.2 *************** *** 23,39 **** - // Ensure color is valid - checkColor($color); - // Store the strict original message $strictMessage = $message; - // Remove swearings - if (C_BAD_WORDS) - { - include('./lib/swearing.lib.' . C_EXTENSION); - $message = checkwords($message, false); - } - // Do the '/me' transformation $message = '<b>* ' . $dbSessionVars['nick'] . ' </b>'. $cmd[1]; --- 23,29 ---- *************** *** 48,52 **** unset($smilies); } ! // Put the message in the 'messages' table $msgQuery = 'INSERT INTO ' . C_MSG_TBL . ' ' --- 38,42 ---- unset($smilies); } ! // Put the message in the 'messages' table $msgQuery = 'INSERT INTO ' . C_MSG_TBL . ' ' *************** *** 67,70 **** --- 57,61 ---- $message = $strictMessage; unset($strictMessage); + $isCommand = true; $doRefreshMessages = true; Index: banish.cmd.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/commands/banish.cmd.php3,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** banish.cmd.php3 2001/04/08 18:24:05 1.2 --- banish.cmd.php3 2001/04/10 09:38:14 1.3 *************** *** 82,86 **** if ($banUntil > 2147483647) $banUntil = 2147483647; ! // Check if the target user is already banished from some rooms $dbLink->query("SELECT ip, rooms FROM " . C_BAN_TBL . " WHERE username = '$slashedTarget' LIMIT 1"); --- 82,86 ---- if ($banUntil > 2147483647) $banUntil = 2147483647; ! // Check if the target user is already banished from some rooms $dbLink->query("SELECT ip, rooms FROM " . C_BAN_TBL . " WHERE username = '$slashedTarget' LIMIT 1"); *************** *** 125,129 **** // Modify the status of the banished user in the connected users table $dbLink->query("UPDATE " . C_USR_TBL . " SET u_time='" . time() . "', status='b' WHERE username = '$slashedTarget'"); ! // banishment confirmation message when an user has been banished // from an other room than the current one --- 125,129 ---- // Modify the status of the banished user in the connected users table $dbLink->query("UPDATE " . C_USR_TBL . " SET u_time='" . time() . "', status='b' WHERE username = '$slashedTarget'"); ! // banishment confirmation message when an user has been banished // from an other room than the current one Index: announce.cmd.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/commands/announce.cmd.php3,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** announce.cmd.php3 2001/04/04 23:52:33 1.1 --- announce.cmd.php3 2001/04/10 09:38:14 1.2 *************** *** 38,42 **** unset($smilies); } ! // Put the message in the 'messages' table $msgQuery = 'INSERT INTO ' . C_MSG_TBL . ' ' --- 38,42 ---- unset($smilies); } ! // Put the message in the 'messages' table $msgQuery = 'INSERT INTO ' . C_MSG_TBL . ' ' *************** *** 54,58 **** $dbLink->query($msgQuery); ! $isCommand = true; $doRefreshMessages = true; --- 54,58 ---- $dbLink->query($msgQuery); ! $isCommand = true; $doRefreshMessages = true; |