Commit graph

1450 commits

Author SHA1 Message Date
Daniel Benoy
1e5b52f685 Object search routines now distinguish between candidates=None, and
candidates=[]
2013-07-17 03:30:48 -04:00
Daniel Benoy
b93a9b4487 self() lock function now works when a db object is passed. 2013-07-16 20:22:39 -04:00
Griatch
261e463505 cleaned up script copy method in script manager. 2013-07-02 16:24:47 +02:00
Griatch
2487d4b622 Fixed script-searching using the obj= keyword. Also made the search more efficient using Q-objects. Resolves Issue 385. 2013-07-02 16:09:20 +02:00
Griatch
92a8e39de5 Changed how the cmdset's errmessage is propagated. Adding failing cmdsets added ErrorCmdsets to the cmdhandler. This was for callback reasons, but it clutters up things for no good reason. 2013-07-02 15:50:42 +02:00
Griatch
47a324f720 Made cmdhandler merge same-prio cmdsets in groups. Before this fix one could face the following situation: Two exits "allcom" and "test". Both have exit cmdsets with prio 9. If "test" merges first, it contains no "allcom" command to overload the "allcom" in the Player cmdset (prio -5). But the merged set now has a priority of 9 thanks to merging the "test" set. So when merging the "allcom" exit-command, it merges with a same-prio set. And since exit-cmdsets have the duplicate-flag set, there will be two allcom commands in the final set. The problem does not show up if "allcom" happened to be merged first, making this effect non-consistent and buggy.
Merging the same-prio exit-sets first, then merging onto the lower-prio sets resolves this issue.
2013-07-02 13:38:38 +02:00
Griatch
3cf01ce711 Reverted previous merge, instead solving the issue by the metaclass making sure to add cmd:all() to the exit command only if the object itself does not specify it. 2013-07-02 11:51:04 +02:00
Griatch
b41761f60c Merge. 2013-07-02 09:35:45 +02:00
Griatch
5800b960ff Added safety feature to lock handling. 2013-07-02 09:34:35 +02:00
Daniel Benoy
b9f40fe8ee Fixed a regression which caused exits to be locked out from use. 2013-07-01 21:46:20 -04:00
Griatch
0164574c00 Added sessid keyword to at_pre_puppet and at_post_unpuppet hooks, where the sessid is otherwise not yet available, as per Issue 383. 2013-07-01 15:03:12 +02:00
Griatch
92339362ec Changed/fixed some issues with the command priorities that caused a lower-prio dynamically-created command to not properly be accounted for. Also changed the prio order for which of the cmdsets are used for checking the "duplicates" flag - it is now the new set being merged onto the new one (i.e. the priorotized) cmdset that must have this flag set in order for the result to have duplicates. 2013-07-01 14:30:17 +02:00
Griatch
1e6384e40c Fixed some documentation typos/rewrites as suggested in Issue 393. 2013-06-30 14:13:01 +02:00
Griatch
878f83aba0 Merge. Added updates to some of the fixes, such as making channel connetion updates look for online Players instead of online Sessions (the latter would have created duplicates in a multi-session environment). 2013-06-30 13:57:21 +02:00
Kelketek
c4db3e5370 Made normal channels not message offline users by default. 2013-06-29 18:52:15 -05:00
Kelketek
240dee1d5b Fixed issue with attribute search not properly handling attribute prefixes. 2013-06-29 15:10:14 -05:00
Kelketek
c3f86ab45b Fixed issue where searching for 'me' did not return typeclassed object. 2013-06-29 14:14:00 -05:00
Griatch
e30f3f7e59 Minor fix to a comment. 2013-06-20 18:10:51 +02:00
Griatch
e6067c873c Fixing old docstring on @quell command, suggesting superuser cannot be quelled. 2013-06-20 18:06:10 +02:00
Griatch
340160e4ea Reverting changes to runner, instead adding settings.CYCLE_LOGFILES config variable. 2013-06-03 17:03:31 +02:00
Griatch
31410f5710 Merge from Kelketek clone. 2013-06-03 16:28:38 +02:00
Daniel Benoy
c10a02f713 Fixed security hole checking channels with @cwho 2013-06-02 06:53:57 -04:00
Kelketek
b98cbd941d Removed log cycling. 2013-06-01 08:03:03 -05:00
Kelketek
7623b1a863 Fixed #379. Addcom no longer crashes when used IC. 2013-06-01 07:22:46 -05:00
Griatch
4715499958 Fixed a missing sessid on System commands. Resolves Issue 377. 2013-05-26 19:29:42 +02:00
Griatch
a9a70c91b1 Fixed a bug with the who command. 2013-05-23 21:38:01 +02:00
Griatch
60068771c7 Fixed a lingering portal session when connection was closed uncleanly. This could in some situations lead to out-of-sync sessions in MULTISESSION_MODE=2. 2013-05-21 15:05:10 +02:00
Griatch
efdb954491 Fixed a logical error in obj.manager causing it to fail to find arbitrary db_>fieldname>. Resolves Issue 373. 2013-05-21 14:29:50 +02:00
Kelketek
bda5d88c24 Fixed issue with webclient sessions hanging on disconnect. 2013-05-18 21:20:54 -05:00
Kelketek
93d0db8489 Removed the redundant handling of location within @IC and @OOC. These should be handled by the hooks. 2013-05-18 20:05:42 -05:00
Kelketek
cab0182077 Fixed issue with lock replacements not committing. 2013-05-18 19:57:47 -05:00
Kelketek
65328e94ff Fixed issue with OOC command sending the menu to all connected sessions of a player. 2013-05-18 19:30:47 -05:00
Kelketek
ad7d8fc9fd Fixed typeclass searching for objects. 2013-05-18 18:47:04 -05:00
Kelketek
1a26552600 Possible fix to bad disconnection issue. 2013-05-18 18:18:32 -05:00
Kelketek
e79f68bbe1 Branch merge. 2013-05-18 14:34:16 -05:00
Kelketek
bf8a5dedc8 Removed bogus warning about SECRET_KEY and replaced it with a more accurate one. 2013-05-16 22:41:48 -05:00
Griatch
afb139bc1c Fixed environment setup in ev.py, for launching the api in a normal python interpreter (not manage.py shell) 2013-05-15 23:57:50 +02:00
Griatch
cc12dc36fa Updated the ReST documentation. 2013-05-15 23:49:38 +02:00
Griatch
d30a79386f Merge. 2013-05-15 21:57:56 +02:00
Kelketek
0fa625236e Removed traces of db_index on db_header and db_title for comms. Turned db_header into textfield. 2013-05-15 06:33:04 -05:00
Griatch
e0c3ee1546 Some cleanup of the launcher info texts. 2013-05-15 09:10:14 +02:00
Griatch
51cf5461fa Fixed a typo on the @ic command's search_object call. 2013-05-14 21:47:25 +02:00
Griatch
e15d6dfb6e Fixed a search feature that was not included in the revision of the object search mechanism - the ability to search based on an object. Resolves Issue 363. 2013-05-14 21:17:29 +02:00
Griatch
a533232885 MySQL<v5.6.4 does not support millisecond precision in its DATETIME fields (as opposed to other databases). This meant that Attributes, which do rely on millisecond precision for creating their object hashes, got out of sync in a horrible way on MySQL (Issue 362). This revision fixes the problem by going to second-level precision if a too-low version of MySQL is detected (this should not be an issue since mysql does not reuse its pks anyway). 2013-05-14 19:15:58 +02:00
Griatch
95268406ab Made @examine show the superuser flag also when called as a Player. Removed some debug printouts. 2013-05-14 15:25:35 +02:00
Griatch
25f1d7b627 An import check in ev.py acted weirdly in some situations. Changed to something more sensible. 2013-05-14 15:17:05 +02:00
Griatch
f00053710c Added Character-level quelling possibilities to superuser. This makes the superuser quelling completely in line with normal quelling for other permission levels. It also removes the need for the special _superuser_character bypass used before (the migration no longer creates it an initial_setup won't either). 2013-05-14 14:53:08 +02:00
Griatch
77a0b47859 Fixed some issues with the _superuser_character bypass as well as the is_superuser property on objects. Also fixed a bug with @examine that caused it to display object Attribute instead of Player Attributes when called from the ooc state. 2013-05-14 13:55:03 +02:00
Griatch
7a8e53b3bd Re-inserting ev.settings along with ev.settings_full. It got accidentally deleted in the previous commit. 2013-05-14 12:15:40 +02:00
Griatch
63549e8c0c Added error checking to ev to catch importing it from a non-django configured interpreter. 2013-05-14 11:54:22 +02:00