| 4246 | } |
| 4247 | |
| 4248 | static int internal_getCommandDescription(lua_State *L) |
| 4249 | { |
| 4250 | const PluginCommand *pc = getPluginCommand(luaL_checkstring(L, 1)); |
| 4251 | if (!pc) |
| 4252 | { |
| 4253 | lua_pushnil(L); |
| 4254 | return 1; |
| 4255 | } |
| 4256 | |
| 4257 | string help = pc->description; |
| 4258 | if (help.size() && help[help.size()-1] != '.') |
| 4259 | help += "."; |
| 4260 | lua_pushstring(L, help.c_str()); |
| 4261 | return 1; |
| 4262 | } |
| 4263 | |
| 4264 | static int internal_threadid(lua_State *L) |
| 4265 | { |
nothing calls this directly
no test coverage detected