Code cleanup

This commit is contained in:
Mm2PL 2023-01-30 22:31:59 +01:00
parent ca0bfb1900
commit cc0aa1aa82
No known key found for this signature in database
GPG key ID: 94AC9B80EFA15ED9

View file

@ -48,7 +48,6 @@ void PluginController::initialize(Settings &settings, Paths &paths)
this->load(index, pluginDir); this->load(index, pluginDir);
} }
} }
// QApplication::exit();
} }
void PluginController::load(QFileInfo index, QDir pluginDir) void PluginController::load(QFileInfo index, QDir pluginDir)
@ -154,12 +153,10 @@ int luaC2SystemMsg(lua_State *L)
lua::push(L, false); lua::push(L, false);
return 1; return 1;
} }
//const char *channel = luaL_optstring(L, 1, NULL);
QString channel; QString channel;
QString text; QString text;
lua::pop(L, &text); lua::pop(L, &text);
lua::pop(L, &channel); lua::pop(L, &channel);
//const char *text = luaL_optstring(L, 2, NULL);
const auto chn = getApp()->twitch->getChannelOrEmpty(channel); const auto chn = getApp()->twitch->getChannelOrEmpty(channel);
if (chn->isEmpty()) if (chn->isEmpty())
{ {