Script: Changed multi-parameter SKIN:Bang() to require "!" in first parameter

This commit is contained in:
Birunthan Mohanathas 2012-05-08 19:46:18 +03:00
parent 9db39b72bc
commit b7a3e03997

View File

@ -44,6 +44,10 @@ static int Bang(lua_State* L)
}
else
{
const WCHAR* bangSz = bang.c_str();
if (*bangSz == L'!')
{
++bangSz; // Skip "!"
std::vector<std::wstring> args;
for (int i = 3; i <= top; ++i)
{
@ -52,7 +56,8 @@ static int Bang(lua_State* L)
args.push_back(tmpSz);
}
Rainmeter->ExecuteBang(bang.c_str(), args, self);
Rainmeter->ExecuteBang(bangSz, args, self);
}
}
return 0;