summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Sluift/ElementConvertors/DiscoItemsConvertor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Sluift/ElementConvertors/DiscoItemsConvertor.cpp b/Sluift/ElementConvertors/DiscoItemsConvertor.cpp
index a38e766..9049912 100644
--- a/Sluift/ElementConvertors/DiscoItemsConvertor.cpp
+++ b/Sluift/ElementConvertors/DiscoItemsConvertor.cpp
@@ -57,7 +57,7 @@ void DiscoItemsConvertor::doConvertToLua(lua_State* L, boost::shared_ptr<DiscoIt
lua_pushstring(L, items[i].getNode().c_str());
lua_setfield(L, -2, "node");
}
- if (!items[i].getJID().isValid()) {
+ if (items[i].getJID().isValid()) {
lua_pushstring(L, items[i].getJID().toString().c_str());
lua_setfield(L, -2, "jid");
}