Private chat system

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Private chat system

    Hello I have removed the chat system of similes and spam from public rooms, and I just wish it were only in private rooms
    PHP Code:
    $dsdate("H.i.s"$chat[2]);
      
    $text parsepm($chat[3], $sid);
      
    $nos substr_count($text,"<img src=");
      if(
    isspam($text))
      {
      
    $chnick getnick_uid($chat[0]);
      echo 
    addchatmsg($chat[0],$text,1,"*ehi! $chnick, Niente Spamming!*");
      }
      else if(
    $nos>20){
      
    $chnick getnick_uid($chat[0]);
      echo 
    addchatmsg($chat[0],$text,1,"*ehi! $chnick, solo 20 smilies per msg!*");
      }else{
      
    $sres substr($chat[3],0,3);
      if(
    $sres == "/me")
      {
      
    $chco strlen($chat[3]);
      
    $goto $chco 3;
      
    $rest substr($chat[3],3,$goto);
      
    $tosay parsepm($rest$sid); 
    that is when I create a private room, someone can help me? thanks

    #2
    When you fetch the room name/id from db, add to select the room tipe.
    if room == private then
    // your code
    <?php unlink('World/Europe/Romania.country'); ?>

    Comment


      #3
      I solved, thanks ionut
      Last edited by Leviathan73; 01.08.11, 13:44.

      Comment

      Working...
      X