Commit graph

299 commits

Author SHA1 Message Date
Griatch
a6ed6ff5ea Better checks for pk in delete command. Update how the delete method of objects avoid recursive calls. Resolves #1453. 2017-09-30 12:00:42 +02:00
Griatch
0ba913332a [fix] The @desc command was erroneously still named @setdesc, this was not the intention. Relates to #1450. 2017-09-30 10:12:46 +02:00
Nicholas Matlaga
c68e7a07ae limit split to first character 2017-09-20 12:54:13 -04:00
Nicholas Matlaga
6d80c973da Added basic Typeclass support to @tunnel 2017-09-19 16:52:24 -04:00
Griatch
f68674fea9 Let caller.search_account query all Account classes. Resolves #1417. 2017-09-10 17:56:28 +02:00
Griatch
6e4183e76d Some minor rephrasings 2017-09-09 19:07:58 +02:00
Griatch
67470bbd66 Merge branch 'BlauFeuer-cleanup-1' of git://github.com/BlauFeuer/evennia into BlauFeuer-BlauFeuer-cleanup-1 2017-09-09 18:59:16 +02:00
Griatch
31fd2795f2 Set default choice for destroy verification question 2017-09-09 18:53:02 +02:00
BlauFeuer
2dd322e721 suggested refactor
Extract into a separate variable (note), then % interpolate it.
2017-09-04 09:20:49 -04:00
BlauFeuer
53943ab1e8 PEP8 code cleanup in building.py
Triple double quoted docstrings, comment edit, long lines shortened, some lines joined, removed unused code/redundant parenthesis
2017-09-04 07:52:16 -04:00
Vincent Le Goff
64e327fdd2 Add a confirmation to the default @destroy command 2017-09-01 15:41:35 +02:00
Griatch
92df3ce5ae Structure handlers to allow .get() to return lists
See #1154. In the end I didn't modify the Attributehandler and
TagHandler like this, instead I added the `return_list` argument
for cases when one wants a guaranteed return.
2017-08-27 14:56:05 +02:00
Griatch
ea87eef218 Fix bug, set no-idle locks on bots 2017-08-20 23:36:36 +02:00
Griatch
8a2e362b7c Make IDLE_TIMEOUT avoidable with account-lock.
Resolves #701. Check the Account-lock 'no_idle_disconnect before kicking an idle
session. This also means superusers will never be kicked. Move the
idle task to the Server to avoid lock imports in Portal. Make the
'lock' command also able to target Accounts. Also some other fixes.
2017-08-20 23:11:33 +02:00
Griatch
b278337172 Make PEP8 cleanup of line spaces and character distances as well as indents 2017-08-19 23:16:36 +02:00
Griatch
7ff783fea1 Resolve merge conflicts with master. 2017-08-19 21:30:42 +02:00
BigJMoney
7bf00850e6 Missed on line in last commit. 2017-07-15 11:44:44 -04:00
BigJMoney
8c07b74eff Updating PR for doctext changes 2017-07-15 11:39:03 -04:00
Griatch
5590ee2258 Rename all instances of Player->Account. 2017-07-07 23:47:21 +02:00
Griatch
0ff1718437 Resolve django 1.11 migration errors. 2017-06-17 22:15:00 +02:00
BigJMoney
b7f6fe5bc1 Fix a couple typos and improve consistency of builder command argument text (in help and doc strings) 2017-06-06 14:49:49 -04:00
Griatch
6db118ac61 Add listing of home to examine command. 2017-05-11 19:30:54 +02:00
Griatch
f7955340a7 Remove ability to teleport puppeted objects to a None location, as per #1304. 2017-04-18 18:29:11 +02:00
Griatch
a648433db8 Merge conflicts against master, including cmdhandler support for direct cmdobject input together with prefix-ignore mechanism from devel. 2017-04-01 16:08:23 +02:00
BlauFeuer
00b9393b39 Fix typo in call to msg method.
Reported by thranduil when attempting `@rename *thranduil = Thranduil1 (throws an ex and gives a stack trace.  Character has no attribute 'mgs'")
2017-03-19 20:18:01 +01:00
Griatch
bb027fc208 Make correctly consider edit locks. 2017-02-28 19:31:47 +01:00
Griatch
8ee817ce8b Fix lingering references to old perms/locks to resolve unittests. 2017-02-18 12:00:27 +01: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
22e57db4a7 Fix errors in testing. 2017-02-17 09:32:15 +01:00
Griatch
d4df0948e3 Change @ desc to @ setdesc to avoid confusion with desc command. 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
BlauFeuer
6d24f82054 Update building.py
Update string to result
2017-02-12 11:06:20 +01:00
BlauFeuer
5ed5e77562 Update building.py
Properly call join with result
2017-02-12 11:06:20 +01:00
BlauFeuer
9a5b6969f3 Update building.py
Result string in loop appended to list
2017-02-12 11:06:20 +01:00
Griatch
91ffde5eaf Fix errors caused by the change of the get_and_merge_cmdset callsign. Makes unittests work correctly again. 2017-02-06 20:20:46 +01:00
Griatch
74eebfed6d Refactor code to remove alerts as per lgtm and #1176. 2017-01-29 19:02:00 +01:00
Griatch
c6d9c0619e Refactor code for readability and compatibility. 2017-01-27 00:19:27 +01:00
Griatch
8b1d16fd5c Run migrations! Another update to the tag structure, the previous migration did not correctly handle all tags, leaving some to get the wrong db_object fields. Also cleaned up the api for many of the Tag-related manager methods that now determins the db_model themselves without needing to give it as an argument. This resolves an issue with Permissions not being set correctly on the character level. 2017-01-25 22:06:54 +01:00
Griatch
99c4042fbc Make the lock command force-update Exits to handle cmd-type locks without a reload; as per #1142. 2017-01-11 21:49:23 +01:00
John Steensen
4be45a6295 Update building.py
Removed extra colon from E-Mail label. Fixed capitalization.
2017-01-10 18:23:05 +01:00
John Steensen
c1921be469 Update format_output on CmdExamine
Updated format_output on CmdExamine to add a check for email attribute. If true, it displays the email address.
2017-01-10 18:23:05 +01:00
Phayte
a239ddcdeb Fix an issues were exit aliases weren't being check when interating over them even though None is the default. 2017-01-10 17:56:51 +01:00
Griatch
619a9cee57 Expanded the property overload of dig and create by moving the entire lockstring into the property for easier overloading, pertaining to #1135. 2016-12-12 23:29:05 +01:00
Trinsic
26bee8c751 Moving the default permission set on an object created with @create or a room created with @dig into an attribute of the command so it can be easily overridden without having to override the entire func call 2016-12-12 23:28:39 +01:00
Griatch
897036e7cb Added Command.execute_cmd for use in Player commands requiring session info. Resolves #1123. 2016-11-22 20:33:50 +01:00
Griatch
5021563704 Fix some erroneous lock access calls in earlier commit. 2016-10-22 23:03:10 +02:00
Griatch
fd27442c39 Add correct checks for builders to use build commands on entities they create. 2016-10-22 22:30:24 +02:00
Griatch
d32e7a8282 Make examine represent Session id's in a less confusing way, as exemplified by #1075. 2016-10-13 20:25:52 +02:00
Griatch
5a5884f6da Add PROTOTYPE_MODULES to settings_default, making use of world/prototypes.py already being defined. 2016-09-13 18:03:50 +02:00
Griatch
80befa96b6 Added an /update switch and a corresponding update command to the typeclass switch system, this allows to soft-update a typeclass and re-run only its at_object_creation, which seems to be the most common use-case. 2016-08-31 21:02:15 +02:00