Private chat system

Started on the old forum in July 2011 · view the original in the archive · old links redirect here

2 replies · 920 views · started 15 years ago · 1 min read

2 participants
Leviathan73 Senior · 260 posts #1

Hello I have removed the chat system of similes and spam from public rooms, and I just wish it were only in private rooms

$ds= date("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

i0nutzxp Developer · 150 posts #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'); ?>

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close