Skip to content

Commit

Permalink
kick_on_join is now optional and disabled by default
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgreaser committed Mar 1, 2013
1 parent 219892d commit 0abda11
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion clsave/pub/user.json
Expand Up @@ -16,7 +16,7 @@

(replace '' with the double-quotes used to contain this comment)

You will need to also set "kick_on_join" to false,
You will need to also set ''kick_on_join'' to false,
or else you will not be able to join any servers!

For more info on the syntax itself, see http://json.org/
Expand Down
12 changes: 2 additions & 10 deletions pkg/base/client_start.lua
Expand Up @@ -31,17 +31,9 @@ local controls_config_filename = user_settings['controls'] or "clsave/pub/contro
-- FIXME: we don't expose documentation for valid user settings anywhere

user_config = common.json_load(user_config_filename)
if user_config.kick_on_join then
if MODE_NUB_KICKONJOIN and user_config.kick_on_join then
error([[
Once you've set your nickname in clsave/pub/user.json,
set your nickname in clsave/pub/user.json,
remember to set your nickname in clsave/pub/user.json,
look for any connect-*.bat files,
and set your nickname in clsave/pub/user.json.
Oh, and then after you set your nickname in clsave/pub/user.json,
you can run said connect-*.bat file,
having set your nickname in clsave/pub/user.json.]])
Edit your clsave/pub/user.json file, and set kick_on_join to false.]])
end
print("json done!")
print("name:", user_config.name)
Expand Down
3 changes: 3 additions & 0 deletions pkg/base/preconf.lua
Expand Up @@ -15,6 +15,9 @@
along with Ice Lua Components. If not, see <http://www.gnu.org/licenses/>.
]]

-- flags we need to add in early
MODE_NUB_KICKONJOIN = false

-- skins allowed
SKIN_ENABLE_SRC = {"pmf", "tga", "wav"}
SKIN_ENABLE = {}
Expand Down

0 comments on commit 0abda11

Please sign in to comment.