From 9fc31e3d046a19c936f7c6e1e5ab703ce44f9218 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 20 Jan 2012 11:18:54 +0100 Subject: Add missing prefix to cave search. --- client/luapraxisd.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/luapraxisd.cc') diff --git a/client/luapraxisd.cc b/client/luapraxisd.cc index 11d619e..974a706 100644 --- a/client/luapraxisd.cc +++ b/client/luapraxisd.cc @@ -85,7 +85,7 @@ static int px_cavelist(lua_State *L) pxu = (px_userdata *)luaL_checkudata(L, 1, "Praxisd"); luaL_argcheck(L, pxu, 1, "Praxisd expected"); - QVector cavelist = pxu->px->diverse_get_cave(""); + QVector cavelist = pxu->px->diverse_get_cave("C"); if(pxu->px->hasError()) { lua_pushstring(L, pxu->px->errorString().toStdString().c_str()); lua_error(L); -- cgit v1.2.3 From f31d618b49759007a9435c00301bbbdfd668dd6d Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 13 Apr 2012 14:06:31 +0200 Subject: Remove utf8 decoding. --- client/luapraxisd.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'client/luapraxisd.cc') diff --git a/client/luapraxisd.cc b/client/luapraxisd.cc index 974a706..00ed961 100644 --- a/client/luapraxisd.cc +++ b/client/luapraxisd.cc @@ -72,7 +72,9 @@ static int px_getcave(lua_State *L) int top = lua_gettop(L); for(int i = 0; i < cavelist.size(); i++) { - lua_pushstring(L, QString::fromUtf8(cavelist[i].toStdString().c_str()).toStdString().c_str()); + QString c = cavelist[i]; + DEBUG(cavelist, "CAVE '%s'\n", c.toStdString().c_str()); + lua_pushstring(L, c.toStdString().c_str()); lua_rawseti(L, top, i); } @@ -96,7 +98,9 @@ static int px_cavelist(lua_State *L) int top = lua_gettop(L); for(size_t i = 0; i < (size_t)cavelist.size(); i++) { - lua_pushstring(L, QString::fromUtf8(cavelist[i].cave.toStdString().c_str()).toStdString().c_str()); + QString c = cavelist[i].cave; + DEBUG(cavelist, "CAVE '%s'\n", c.toStdString().c_str()); + lua_pushstring(L, c.toStdString().c_str()); lua_rawseti(L, top, i); } -- cgit v1.2.3