debug_handler("Setting remote address to %s", node->remote );
osrfChatSendRaw( node, OSRF_CHAT_LOGIN_OK );
+ if(osrfHashGet( node->parent->nodeHash, node->remote ) ) {
+ warning_handler("New node replaces existing node for remote id %s", node->remote);
+ osrfHashRemove(node->parent->nodeHash, node->remote);
+ }
osrfHashSet( node->parent->nodeHash, node, node->remote );
node->state = OSRF_CHAT_STATE_CONNECTED;
}
#define OSRF_CHAT_STATE_INIQ 2
#define OSRF_CHAT_STATE_INUSERNAME 4
#define OSRF_CHAT_STATE_INRESOURCE 8
-#define OSRF_CHAT_STATE_INS2SRESULT 8
-#define OSRF_CHAT_STATE_INS2SVERIFY 8
+#define OSRF_CHAT_STATE_INS2SRESULT 16
+#define OSRF_CHAT_STATE_INS2SVERIFY 32
struct __osrfChatNodeStruct {