BlauFeuer
f857a43f4b
Markup update, docstring and whitespace fixes
2017-02-19 09:46:43 +01:00
BlauFeuer
7f06bb4b73
Correct errant find/replace from last commit
2017-02-19 09:46:43 +01:00
Griatch
33000a55f6
Have CmdPerm check the 'edit' locktype when caller is a player instead of 'control' (which is not defined on players). Resolves #1223 .
2017-02-19 09:25:21 +01:00
Tehom
959e5ec558
Put in fix for nicks.has check being True when returning list of False matches due to None caching.
2017-02-18 20:39:14 +01:00
Griatch
ee8c9a93c3
Add tentative errback for not firing an error when response is not fast enough to fire before a user closes the connection. Might handle #1207 .
2017-02-18 20:32:13 +01:00
Griatch
d9e305702f
Made sure to allow setting the option even though the client does not report it. Might help with #1218 ... maybe.
2017-02-18 19:41:10 +01:00
Griatch
865ab131bb
Fix reference error in get_input. Resolves #1219 .
2017-02-18 19:21:43 +01:00
Griatch
517ce93bb4
Fix merge conflicts against master branch.
2017-02-18 12:08:51 +01:00
Griatch
8ee817ce8b
Fix lingering references to old perms/locks to resolve unittests.
2017-02-18 12:00:27 +01:00
Griatch
2138e4cd70
Run migrations! Update all Permissions and Locks to new Permission hierarchy.
2017-02-18 11:31:17 +01:00
BlauFeuer
a651490565
Refactor to remove alerts as per lgtm and #1176 .
...
Should remove 2 string concatenation in a loop alerts.
2017-02-17 18:18:37 -05:00
Griatch
0bd47f0c52
Change permission strings so Immortals->Developer, Wizards->Admin, Builders->Builder, PlayerHelper->Helper, Players->Player, Guests->Guest. Made perm() and pperm() lock function accept both the plural and singular form (so both Admin and Admins work). Still lacking a data migration for updating an existing database to the new setup.
2017-02-17 23:25:09 +01:00
Griatch
edc092bfc4
Run migrations! Add support for using Scripts as senders/receivers of Msg entities. Implements #1179 .
2017-02-17 21:42:26 +01:00
Griatch
ccfcf37e33
Convert EvMenu to use overridable methods instead of plugin functions. Implements #1205 .
2017-02-17 21:18:15 +01:00
Griatch
22e57db4a7
Fix errors in testing.
2017-02-17 09:32:15 +01:00
Griatch
1fbb4c4358
Add functioning prefix-ignorer and cleanup of code.
2017-02-17 09:19:55 +01:00
Griatch
d4df0948e3
Change @ desc to @ setdesc to avoid confusion with desc command.
2017-02-17 09:19:55 +01:00
Griatch
dffbf9f8d6
Rework prefix-ignorer to retain a reference to the unstripped cmdname. Currently unworking.
2017-02-17 09:19:55 +01:00
Griatch
fd3d6aee9a
Clean up default command names and aliases to avoid multimatches with new prefix-ignorer. Chane desc->setdesc, alias->nick, @home->@sethome.
2017-02-17 09:19:22 +01:00
Griatch
596efe4c72
Add prefix-ignorer. This will identify allow users to target a command using both cmd, @cmd, +cmd etc. If there are two different commands @cmd and cmd, entering @cmd will still explicitly target the former. Single-character commands consisting of only an ignore-character will not be ignored. Configure and turn off using settings.CMD_PREFIX_IGNORE.
2017-02-17 09:18:04 +01:00
BlauFeuer
ad1b0c7b77
contrib/tutorial_world/rooms.py Update markup +
...
whitespace and added `?` alias to help command consistent with pre-login and command help commands.
2017-02-16 21:39:11 -05:00
BlauFeuer
8dbd7163be
contrib/tutorial_world/build.ev update markup only
2017-02-16 21:35:24 -05:00
BlauFeuer
c100a7765c
contrib/extended_room.py code, markup updates
...
Whitespace edits, also
2017-02-16 21:31:48 -05:00
BlauFeuer
78ff1f39a0
contrib/email_login.py code cleanup, update markup
...
Line breaks at more visual locations
2017-02-16 21:28:36 -05:00
BlauFeuer
eef348b4ba
contrib/dice.py code cleaning, update markup
...
Renames variable lparts to len_parts, removes redundant code
2017-02-16 21:24:37 -05:00
BlauFeuer
9b391fbe6b
contrib/chargen.py code cleaning, update markup
...
Also remove commented code and redundant code
2017-02-16 21:21:20 -05:00
BlauFeuer
b1be4ade62
contrib/barter.py code cleaning, update markup
...
Renames partA/B variables to part_a/b
Typo fixes
2017-02-16 21:18:39 -05:00
BlauFeuer
81d35dad14
contrib/tests.py code cleaning, update markup
2017-02-16 21:14:10 -05:00
Griatch
1b3fb8fca9
Rename convert_gamescript to custom_gamescript to reflect its new function. Change names of the settings variables used to TIME_* to better match the settings naming style elsewhere. Add updated docstring to module; pertains to #1217 .
2017-02-16 00:04:09 +01:00
Griatch
b91e12db20
Some cleanup of docstrings.
2017-02-15 23:43:49 +01:00
Vincent Le Goff
a69b335a9e
Clean up in the gametime utility
2017-02-15 23:43:49 +01:00
Vincent Le Goff
e867b343cf
Update the documentation of the contrib convert_gametime
2017-02-15 23:43:49 +01:00
Vincent Le Goff
7cd7d68a5a
Add the script/functions to schedule events with a standard calendar
2017-02-15 23:43:49 +01:00
Vincent Le Goff
c18bfe7388
Update the time-sensitive script
...
Since the game time doesn't drift much anymore, the script doesn't
need to restart on startup. The restart on repeat is kept, small
drifts could accumulate otherwise.
2017-02-15 23:43:49 +01:00
Vincent Le Goff
95c8bf348b
Save the game time before shutting down the server (avoids drfts)
2017-02-15 23:43:49 +01:00
Vincent Le Goff
c05a0a58bf
Update the documentation for the schedule() function
2017-02-15 23:43:49 +01:00
Vincent Le Goff
753bd35226
The time epoch defined in settings can now be 0 (different from None).
...
The convert_gametime contrib now has a simple function to return gametime with units.
2017-02-15 23:43:49 +01:00
Vincent Le Goff
ee1fc0b648
Update the convert_gametime contrib (stable reload/restart)
2017-02-15 23:43:49 +01:00
Vincent Le Goff
ec63d43905
Add a check to not create a task to watch a script if the task already exists
2017-02-15 23:43:49 +01:00
Vincent Le Goff
f6988610cd
Use Script.restart() in GametimeScript to change interval
2017-02-15 23:43:49 +01:00
Vincent Le Goff
64fd770b5a
Add the gametime-sensitive script (errors in intervals)
2017-02-15 23:43:49 +01:00
Vincent Le Goff
c6ccc08ad0
Add the 'real_seconds_until' function in the gametime contrib
2017-02-15 23:43:49 +01:00
Vincent Le Goff
ab97f3674e
Add optional settings to change game time measurement and units
2017-02-15 23:43:49 +01:00
Vincent Le Goff
175f4ed026
Add a list of game units in the convert_gametime contrib
...
This is a dictionary that can be overridden without rewriting the entire module.
2017-02-15 23:43:49 +01:00
BlauFeuer
ce48eae62f
PEP 8: visual indent + implicit continuation
...
Also removed unnecessary hyphen from word
2017-02-12 20:42:32 -05:00
BlauFeuer
0143043319
refactor to avoid string concatenation in a loop
...
Trivial here since there's only 4 roots, but removes an LGTM alert.
2017-02-12 20:30:00 -05:00
BlauFeuer
a687cb7b26
comms.py update markup/PEP 8/whitespace,
...
Also removed redundant code
2017-02-12 19:21:40 -05:00
BlauFeuer
2079504c07
general.py update markup/PEP 8/typos/whitespace
2017-02-12 19:18:04 -05:00
BlauFeuer
1fb064c978
objects.py markup/whitespace/PEP 8/typo fixes
2017-02-12 19:05:18 -05:00
BlauFeuer
9ea8daf605
connection_screens.py update markup/format
2017-02-12 18:59:38 -05:00