Ok i got here:
When i type the ecrypted msg oomoeogoao ohooomoeo it types out omega hmeo
code:
elseif($cmd=="@")

{

$sep=substr($enc,0,1);

$denc=explode($sep,$enc);

for($i=0;$i<strlen($enc);$i++)

{

$test[]=substr($enc,$i,1);

$tests=$test[$i-2].$test[$i-1].$test[$i];

$testb=substr($enc,0,1).substr($enc,0,1).substr($enc,0,1);

if($tests==$testb){$dencf=$dencf.substr($enc,0,1).$denc[$i];}

else{$dencf=$dencf.$denc[$i];}

}

$dencf=substr($enc,0,1).$dencf;

irc_put_message("PRIVMSG $nickto :<$nick,encrypted message> $enc:$dencf");

}




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to