# HG changeset patch
# User Sonny Piers <sonny.piers@gmail.com>
# Date 1328636243 -3600
# Node ID 2290321f5c8b7fdddc172ab40358b9879d41bccf
# Parent  4d0fc1c9ec8857301aa86fe3609c52361782ac2b
Always having an id on out-iq.

diff --git a/lightstring.js b/lightstring.js
--- a/lightstring.js
+++ b/lightstring.js
@@ -269,10 +269,10 @@ Lightstring.Connection.prototype = {
       var callback = {success: aSuccess, error: aError};
 
       var id = stanza.DOM.getAttributeNS(null, 'id');
-      if (!id)
-        ; //TODO: warning
-      else
-        this.callbacks[id] = callback;
+      if (!id) {
+        var id = Lightstring.newId('sendiq:');
+        stanza.DOM.setAttributeNS(null, 'id', id);
+      }
 
       this.callbacks[id] = callback;