From 9399f2bdad72aa6d14620277cbef5b136d47d8a3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Sat, 21 Sep 2013 08:41:05 +0200
Subject: Sluift: Fix bug in DiscoItems element convertor

Change-Id: I02f038865850b8d86ee85115ef9a63cc2ce0db8e

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");
 			}
-- 
cgit v0.10.2-6-g49f6