Skip to content

Commit

Permalink
remove ugly code in spell words
Browse files Browse the repository at this point in the history
  • Loading branch information
MillhioreBT committed Mar 14, 2024
1 parent 619f2a6 commit a968bf7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/luaspells.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -598,12 +598,8 @@ int luaSpellWords(lua_State* L)
pushString(L, spell->getSeparator());
return 2;
} else {
std::string sep = "";
if (lua_gettop(L) == 3) {
sep = getString(L, 3);
}
spell->setWords(getString(L, 2));
spell->setSeparator(sep);
spell->setSeparator(getString(L, 3));
pushBoolean(L, true);
}
} else {
Expand Down

0 comments on commit a968bf7

Please sign in to comment.