Skip to content

Commit

Permalink
debug output for disco errors
Browse files Browse the repository at this point in the history
  • Loading branch information
RJ committed Jul 12, 2009
1 parent c0c0a15 commit 0f62329
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/jbot.cpp
Expand Up @@ -3,6 +3,7 @@
#include <boost/thread.hpp>
#include <boost/bind.hpp>


using namespace gloox;
using namespace std;

Expand Down Expand Up @@ -366,9 +367,9 @@ jbot::handleDiscoItems( const JID& /*iq*/, const Disco::Items&, int /*context*/
}

void
jbot::handleDiscoError( const JID& /*iq*/, const Error*, int /*context*/ )
jbot::handleDiscoError( const JID& j, const Error* e, int /*context*/ )
{
printf( "handleDiscoError\n" );
printf( "handleDiscoError for jid: %s reason: %s\n", j.full().c_str(), e->text().c_str() );
}
/// END DISCO STUFF
/*
Expand Down
1 change: 1 addition & 0 deletions src/jbot.h
Expand Up @@ -25,6 +25,7 @@
#include <gloox/siprofileft.h>
#include <gloox/siprofilefthandler.h>
#include <gloox/bytestreamdatahandler.h>
#include <gloox/error.h>

#include <boost/function.hpp>

Expand Down

0 comments on commit 0f62329

Please sign in to comment.