do not replace \n!!!
authorpk910 <philipp@zoelle1.de>
Sun, 27 Nov 2011 03:25:41 +0000 (04:25 +0100)
committerpk910 <philipp@zoelle1.de>
Sun, 27 Nov 2011 03:25:41 +0000 (04:25 +0100)
Bots/CGod.class.php

index efc2bd68f7e876144b56ed494a46001f8dbdc3ae..4871694f1c3f45e1925105605c01cea92b368e25 100644 (file)
@@ -92,7 +92,7 @@ class {$_NAME} extends Bot {
                                $entry['channel'] = $channel;
                 $entry['id'] = rand(1, 999999);
                 $fp = fopen("tmp/debug_".$entry['id'].".c", "w");
-                fwrite($fp, "#include \"includes.h\"\n".str_replace(array("\\n"), array("\n"),$exp[1]));
+                fwrite($fp, "#include \"includes.h\"\n".$exp[1]);
                 fclose($fp);
                 $err = shell_exec("gcc -o tmp/debug_".$entry['id']." tmp/debug_".$entry['id'].".c 2>&1");
                 if($err) {