mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Lua get_get_current_recipient
This commit is contained in:
parent
d90b15779e
commit
e731c61480
@ -113,15 +113,15 @@ lua_api_send_line(lua_State *L)
|
|||||||
static int
|
static int
|
||||||
lua_api_get_current_recipient(lua_State *L)
|
lua_api_get_current_recipient(lua_State *L)
|
||||||
{
|
{
|
||||||
/*
|
const char *recipient = api_get_current_recipient();
|
||||||
char *recipient = api_get_current_recipient();
|
|
||||||
if (recipient != NULL) {
|
if (recipient != NULL) {
|
||||||
return Py_BuildValue("s", recipient);
|
lua_pushstring(L, recipient);
|
||||||
} else {
|
} else {
|
||||||
return Py_BuildValue("");
|
lua_pushnil(L);
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
return 0;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
Loading…
Reference in New Issue
Block a user