diff options
Diffstat (limited to 'Sluift/client.cpp')
| -rw-r--r-- | Sluift/client.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Sluift/client.cpp b/Sluift/client.cpp index 4b065ab..e8e6a1a 100644 --- a/Sluift/client.cpp +++ b/Sluift/client.cpp @@ -42,2 +42,3 @@ #include <Sluift/ElementConvertors/MessageConvertor.h> +#include <Sluift/ElementConvertors/StatusShowConvertor.h> @@ -284,2 +285,3 @@ SLUIFT_LUA_FUNCTION_WITH_HELP( "status the text of the presence\n" + "show the availability of the presence (`online`, `ffc`, `away`, `xa`, `dnd`)\n" "priority the priority of the presence\n" @@ -309,2 +311,5 @@ SLUIFT_LUA_FUNCTION_WITH_HELP( } + if (boost::optional<std::string> value = Lua::getStringField(L, index, "show")) { + presence->setShow(StatusShowConvertor::convertStatusShowTypeFromString(*value)); + } std::vector< boost::shared_ptr<Payload> > payloads = getPayloadsFromTable(L, index); |
Swift