summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9a56598)
raw | patch | inline | side by side (parent: 9a56598)
author | daleharvey <daleharvey@users.sourceforge.net> | |
Wed, 24 May 2006 11:47:01 +0000 (11:47 +0000) | ||
committer | daleharvey <daleharvey@users.sourceforge.net> | |
Wed, 24 May 2006 11:47:01 +0000 (11:47 +0000) |
src/jabber_whiteboard/chat-handler.cpp | patch | blob | history |
index b3e906508668e5c06cddd60a4ac1addd5d1884da..0ba733a0c06c589dac944d233c02705b9f2ac0ec 100644 (file)
// Therefore we need to use some sort of hacked-up method to make this work. We listen for
// the sentinel value in a groupchat message -- currently it is '[username] INKBOARD-JOINED' --
// and begin processing that way.
- LmMessageNode* body = lm_message_node_get_child(root, "body");
- if (body != NULL) {
- gchar const* val = lm_message_node_get_value(body);
- if (strcmp(val, String::ucompose("%1 has become available", this->_sm->session_data->chat_handle).c_str()) == 0) {
- return this->_finishConnection(); break;
- } else {
+
+ //LmMessageNode* body = lm_message_node_get_child(root, "body");
+ //if (body != NULL) {
+ //gchar const* val = lm_message_node_get_value(body);
+ //g_warning("hey - %s",val);
+ //if (strcmp(val, String::ucompose("%1 entered the room.", this->_sm->session_data->chat_handle).c_str()) == 0) {
+ // return this->_finishConnection(); break;
+ //} else {
return LM_HANDLER_RESULT_ALLOW_MORE_HANDLERS;
break;
- }
- } else {
+ //}
+ //} else {
return LM_HANDLER_RESULT_ALLOW_MORE_HANDLERS;
break;
- }
+ //}
}
default:
this->_sm->session_data->receive_queues[sender.raw()] = new ReceiveMessageQueue(this->_sm);
} else {
+ return this->_finishConnection(); break;
//g_warning("hmm, who is chatting %s",chatter);
// If the presence message is from ourselves, then we know that we
// have successfully entered the chatroom _and_ have received the entire room roster,