diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-08-27 09:16:03 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-08-27 09:16:03 -0400 |
commit | 108b1e7bfd4f8570c556fb1aa90bee30d9117b17 (patch) | |
tree | d9808637d198694d6745a0caac0dec104e15d8a1 /scripts/xmppdaemon.php | |
parent | 44c1863f0e1039ebb27b8c0ab21af929d49e690b (diff) |
fixup whitespace
darcs-hash:20080827131603-84dde-7be64f28840a29c5833bc625aaf6cb8f07b891e5.gz
Diffstat (limited to 'scripts/xmppdaemon.php')
-rwxr-xr-x | scripts/xmppdaemon.php | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/scripts/xmppdaemon.php b/scripts/xmppdaemon.php index 76bd413f9..eef6f0d4b 100755 --- a/scripts/xmppdaemon.php +++ b/scripts/xmppdaemon.php @@ -21,24 +21,24 @@ function xmppdaemon_error_handler($errno, $errstr, $errfile, $errline, $errcontext) { switch ($errno) { case E_USER_ERROR: - echo "ERROR: [$errno] $errstr ($errfile:$errline)\n"; - echo " Fatal error on line $errline in file $errfile"; - echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")\n"; - echo "Aborting...\n"; - exit(1); - break; + echo "ERROR: [$errno] $errstr ($errfile:$errline)\n"; + echo " Fatal error on line $errline in file $errfile"; + echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")\n"; + echo "Aborting...\n"; + exit(1); + break; - case E_USER_WARNING: - echo "WARNING [$errno] $errstr ($errfile:$errline)\n"; - break; + case E_USER_WARNING: + echo "WARNING [$errno] $errstr ($errfile:$errline)\n"; + break; case E_USER_NOTICE: - echo "My NOTICE [$errno] $errstr ($errfile:$errline)\n"; - break; + echo "NOTICE [$errno] $errstr ($errfile:$errline)\n"; + break; default: - echo "Unknown error type: [$errno] $errstr ($errfile:$errline)\n"; - break; + echo "Unknown error type: [$errno] $errstr ($errfile:$errline)\n"; + break; } /* Don't execute PHP internal error handler */ @@ -201,7 +201,7 @@ class XMPPDaemon { return false; } } - + function from_site($address, $msg) { $text = '['.common_config('site', 'name') . '] ' . $msg; jabber_send_message($address, $text); |