[Phpfreechat-svn] SF.net SVN: phpfreechat: [1156] trunk
Status: Beta
Brought to you by:
kerphi
|
From: <ke...@us...> - 2007-08-29 12:23:02
|
Revision: 1156
http://phpfreechat.svn.sourceforge.net/phpfreechat/?rev=1156&view=rev
Author: kerphi
Date: 2007-08-29 05:23:00 -0700 (Wed, 29 Aug 2007)
Log Message:
-----------
remove pxlog calls
Modified Paths:
--------------
trunk/demo/demo27_customized_command.php
trunk/src/commands/me.class.php
trunk/src/commands/nick.class.php
trunk/src/commands/notice.class.php
trunk/src/commands/quit.class.php
trunk/src/commands/send.class.php
trunk/src/phpfreechat.class.php
trunk/src/proxies/checknickchange.class.php
Modified: trunk/demo/demo27_customized_command.php
===================================================================
--- trunk/demo/demo27_customized_command.php 2007-08-29 12:22:44 UTC (rev 1155)
+++ trunk/demo/demo27_customized_command.php 2007-08-29 12:23:00 UTC (rev 1156)
@@ -35,7 +35,6 @@
$result = $dice->roll();
$ct->write($recipient, $nick, "send", $result);
}
- if ($c->debug) pxlog("Cmd_roll[".$c->sessionid."]: msg=".$result, "chat", $c->getId());
}
}
@@ -76,4 +75,4 @@
?>
</body>
-</html>
\ No newline at end of file
+</html>
Modified: trunk/src/commands/me.class.php
===================================================================
--- trunk/src/commands/me.class.php 2007-08-29 12:22:44 UTC (rev 1155)
+++ trunk/src/commands/me.class.php 2007-08-29 12:23:00 UTC (rev 1156)
@@ -31,9 +31,7 @@
$msg = phpFreeChat::PreFilterMsg($param);
$ct->write($recipient, "*me*", $this->name, $u->getNickname()." ".$msg);
-
- if ($c->debug) pxlog("/me ".$msg, "chat", $c->getId());
}
}
-?>
\ No newline at end of file
+?>
Modified: trunk/src/commands/nick.class.php
===================================================================
--- trunk/src/commands/nick.class.php 2007-08-29 12:22:44 UTC (rev 1155)
+++ trunk/src/commands/nick.class.php 2007-08-29 12:23:00 UTC (rev 1156)
@@ -35,8 +35,6 @@
$newnickid = $ct->getNickId($newnick);
$oldnickid = $u->nickid;
- if ($c->debug) pxlog("/nick ".$newnick, "chat", $c->getId());
-
// new nickname is undefined (not used) and
// current nickname (oldnick) is mine and
// oldnick is different from new nick
@@ -84,8 +82,6 @@
$xml_reponse->script("pfc.handleResponse('nick', 'connected', '".addslashes($newnick)."');");
- if ($c->debug)
- pxlog("/nick ".$newnick." (first connection, oldnick=".$oldnick.")", "chat", $c->getId());
return true;
}
@@ -93,4 +89,4 @@
}
}
-?>
\ No newline at end of file
+?>
Modified: trunk/src/commands/notice.class.php
===================================================================
--- trunk/src/commands/notice.class.php 2007-08-29 12:22:44 UTC (rev 1155)
+++ trunk/src/commands/notice.class.php 2007-08-29 12:23:00 UTC (rev 1156)
@@ -32,7 +32,6 @@
return;
}
}
- if ($c->debug) pxlog("/notice ".$msg." (flag=".$flag.")", "chat", $c->getId());
}
}
Modified: trunk/src/commands/quit.class.php
===================================================================
--- trunk/src/commands/quit.class.php 2007-08-29 12:22:44 UTC (rev 1155)
+++ trunk/src/commands/quit.class.php 2007-08-29 12:23:00 UTC (rev 1156)
@@ -50,9 +50,7 @@
*/
$xml_reponse->script("pfc.handleResponse('quit', 'ok', '');");
-
- if ($c->debug) pxlog("/quit (a user just quit -> nick=".$nick.")", "chat", $c->getId());
}
}
-?>
\ No newline at end of file
+?>
Modified: trunk/src/commands/send.class.php
===================================================================
--- trunk/src/commands/send.class.php 2007-08-29 12:22:44 UTC (rev 1155)
+++ trunk/src/commands/send.class.php 2007-08-29 12:23:00 UTC (rev 1156)
@@ -52,8 +52,6 @@
if (count($errors) > 0)
{
// an error occured, just ignore the message and display errors
- foreach($errors as $e)
- if ($c->debug) pxlog("error /send, user can't send a message -> nick=".$nick." err=".$e, "chat", $c->getId());
$cmdp = $p;
$cmdp["param"] = $errors;
$cmd =& pfcCommand::Factory("error");
@@ -90,4 +88,4 @@
}
}
-?>
\ No newline at end of file
+?>
Modified: trunk/src/phpfreechat.class.php
===================================================================
--- trunk/src/phpfreechat.class.php 2007-08-29 12:22:44 UTC (rev 1155)
+++ trunk/src/phpfreechat.class.php 2007-08-29 12:23:00 UTC (rev 1156)
@@ -334,7 +334,9 @@
// if a content not empty is captured it is a php error in the code
$data = ob_get_contents();
if ($data != "")
- pxlog("HandleRequest: content=".$data, "chat", $c->getId());
+ {
+ // todo : display the $data somewhere to warn the user
+ }
ob_end_clean();
}
Modified: trunk/src/proxies/checknickchange.class.php
===================================================================
--- trunk/src/proxies/checknickchange.class.php 2007-08-29 12:22:44 UTC (rev 1155)
+++ trunk/src/proxies/checknickchange.class.php 2007-08-29 12:23:00 UTC (rev 1156)
@@ -68,8 +68,6 @@
$newnickid == $oldnickid)
{
$xml_reponse->script("pfc.handleResponse('".$this->name."', 'notchanged', '".addslashes($newnick)."');");
- if ($c->debug)
- pxlog("/nick ".$newnick." (user just reloded the page so let him keep his nickname without any warnings)", "chat", $c->getId());
return true;
}
@@ -82,8 +80,6 @@
$xml_reponse->script("pfc.handleResponse('nick', 'notallowed', '".addslashes($newnick)."');");
else
$xml_reponse->script("pfc.handleResponse('nick', 'isused', '".addslashes($newnick)."');");
- if ($c->debug)
- pxlog("/nick ".$newnick." (wanted nick is already in use -> wantednickid=".$newnickid.")", "chat", $c->getId());
return false;
}
}
@@ -127,4 +123,4 @@
}
}
-?>
\ No newline at end of file
+?>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|