summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@boursin.controlezvous.ca>2008-07-06 02:14:37 -0400
committerEvan Prodromou <evan@boursin.controlezvous.ca>2008-07-06 02:14:37 -0400
commit973831002ab94262b875eaa6f480663a573b187c (patch)
tree33c3589115b6da131fd648e5244618fec958e7e0
parent62db03d31fc1341fb3eb83e1aed9b1972f1252b0 (diff)
debugging on the live server
darcs-hash:20080706061437-5a68a-734b7f7b7966e8091f1c6df3abaf10bed9b0f0f8.gz
-rwxr-xr-xxmppdaemon.php12
1 files changed, 5 insertions, 7 deletions
diff --git a/xmppdaemon.php b/xmppdaemon.php
index da5ffb9f4..22b957c97 100755
--- a/xmppdaemon.php
+++ b/xmppdaemon.php
@@ -95,7 +95,7 @@ class XMPPDaemon {
}
$this->broadcast_queue();
- $this->confirmation_queue();
+# $this->confirmation_queue();
}
}
@@ -325,7 +325,7 @@ class XMPPDaemon {
}
function confirmation_queue() {
- $this->clear_old_confirm_claims();
+ # $this->clear_old_confirm_claims();
$this->log(LOG_INFO, 'checking for queued confirmations');
do {
$confirm = $this->next_confirm();
@@ -336,10 +336,9 @@ class XMPPDaemon {
$this->log(LOG_WARNING, 'Confirmation for unknown user ' . $confirm->user_id);
continue;
}
-
$success = jabber_confirm_address($confirm->code,
- $user->nickname,
- $jabber);
+ $user->nickname,
+ $confirm->address);
if (!$success) {
$this->log(LOG_ERROR, 'Confirmation failed for ' . $confirm->address);
# Just let the claim age out; hopefully things work then
@@ -362,8 +361,7 @@ class XMPPDaemon {
function next_confirm() {
$confirm = new Confirm_address();
- $confirm->sent = NULL;
- $confirm->claimed = NULL;
+ $confirm->whereAdd('claimed IS NULL');
# XXX: eventually we could do other confirmations in the queue, too
$confirm->address_type = 'jabber';
$confirm->orderBy('modified DESC');