Commit graph

143 commits

Author SHA1 Message Date
Ahmed Charles
79437c0e48 Move guest login to a separate function. 2015-11-01 15:11:12 +01:00
Ahmed Charles
c6b6edf7f7 Don't execute_cmd("quit"), just disconnect. 2015-11-01 15:11:12 +01:00
Ahmed Charles
cd23c6c056 Indent docs properly. 2015-11-01 15:11:12 +01:00
Ahmed Charles
ab8ea3d75d Remove unused import. 2015-11-01 15:11:12 +01:00
Ahmed Charles
3188f89e47 Cleanup some logger functions which were missed in the merge conflict. 2015-10-19 22:51:49 +00:00
Griatch
50371b6abd Merged conflicts. 2015-10-19 23:32:00 +02:00
Ahmed Charles
acdf2573b0 Printing traces to the user is usually bad.
This could, in theory, expose more information about how the server
works than would be advised, benefiting potential attackers.
2015-10-19 23:31:19 +02:00
Ahmed Charles
bc340fbf0d Remove commented out print statements. 2015-10-19 23:31:19 +02:00
Ahmed Charles
0384fcc63d Move to python3 style except. 2015-10-19 23:31:19 +02:00
Ahmed Charles
53ec675960 Add extra space between sentences. 2015-10-18 11:58:20 +02:00
Ahmed Charles
b4cc24e655 Improve help command. 2015-10-17 07:23:19 +00:00
Griatch
0c7ee1bdfc Fixed a bug in search error reporting. Made accept to change a player's name. Closes PR: Resolves #820, Resolves #821, Resolves #822, Resolves #823. 2015-10-16 22:34:40 +02:00
Ahmed Charles
3cfee6dc87 Fix comments about connection_screens.py 2015-10-16 22:23:38 +02:00
Griatch
c191996975 Changed so that channel names can use any case. Resolves #814. 2015-10-11 19:22:14 +02:00
Griatch
90c6ade56d Made sure the command sends raw evals as raw data. Resolves #816. This removes color completely from raw evals but they will still be present if using self.msg() in the evaluation (if doing so, this particular side effect still exists too though). 2015-10-11 19:08:32 +02:00
Griatch
eb2bd8d44c Converted a large part of utils/ folder to google code docstrings as per #709. 2015-09-27 20:24:03 +02:00
Griatch
5d32d4f94e Added a command recursion limit to cmdhandler, raising a clean exception if a command calls other commands to a too nested level (10 levels down, if you use commands to that nesting level you are doing something wrong anyway). See #765. 2015-09-27 13:44:06 +02:00
Griatch
2743f98fb0 Removed SEARCH_AT_MULTIMATCH_INPUT and SEARCH_AT_MULTIMATCH_CMD settings and connected functions - these are no longer individually overloadable. SEARCH_AT_RESULT function now handles all error reporting. Also added SEARCH_MULTIMATCH_SEPARATOR to make it easy to replace the character used to separate multi-matches (1-box, 2-box is using '-' by default), in response to #795. Also moved the default SEARCH_AT_RESULT function from the cmdparser to evennia.utils.utils. 2015-09-27 13:05:29 +02:00
Griatch
b59340784c Made some cleanup of docstrings to clarify hook load order. 2015-09-05 21:49:54 +02:00
Griatch
a7e42b2a5b Changed cmdparser to properly convert to unicode before length measuring, which was causing unexpected behavior with non-ASCII charsets. 2015-09-04 21:11:01 +02:00
Kate
8647bf2367 Fix for NoneType exceptions when initial_setup.py is run where multisession_mode is not set to 0. 2015-08-22 10:34:06 +02:00
Jake Shasteen
7d3ed681ac Added {u to the ansi parser for underlining text. 2015-08-15 00:33:57 -04:00
Griatch
2cdb13143d Made the charcreate lock (only allow one char/player) for MULTISESSION_MODE<2 a part of the respective command rather than globally in the module. 2015-08-13 09:06:27 +02:00
Griatch
b1b1912e8c Removed a lingering refefence to old get_all_attributes method. Resolves #780. 2015-08-06 07:56:18 +02:00
Andrew Bastien
c1f35a4e10 - Tiny fix to the failed login call. 2015-07-25 18:35:34 +02:00
Andrew Bastien
e0e382e0c6 - Added .at_failed_login(session) to default Player typeclass.
- unloggedin.CmdUnconnectedConnect now calls the at_failed_login hook on player if a correct user is entered by an invalid password provided.
2015-07-25 18:35:34 +02:00
Griatch
640439dcf5 Removed the examine: locktype from the @create locktype setting. Resolves #770. 2015-07-22 14:38:12 +02:00
Griatch
3ae00972a9 Added evmore - a more-like pager mechanism for displaying long texts. 2015-07-09 14:37:09 +02:00
Griatch
d47bd96ddd integrated the line editor functionality with the @set command (using the /edit switch), removing the example CmdEdit command from the eveditor module. 2015-07-09 14:37:09 +02:00
Griatch
870c750538 Refactored and cleaned up the EvEditor module. 2015-07-09 14:37:09 +02:00
Griatch
cc2b094bc6 Moved lineditor into utils/eveditor.py. The line editor is accessed by simply importing the class (same as EvTable, EvMenu etc), so the utils.get_line_editor function was removed. 2015-07-09 14:37:09 +02:00
Griatch
ea0de32607 Updated the Command class with set_key/set_alias methods to allow for dynamic updating of command key/aliases properties while making sure all optimization recaches are hit. 2015-07-07 16:42:20 +02:00
Griatch
a8332fe431 Reworked the fix of #769 to be cleaner and using a full import mechanism rather than the pre-module lookup that messed up the unittests. 2015-07-07 15:29:28 +02:00
Griatch
0003868533 Added more logics for pre-lookups of cmdset paths at any nested package depth. Resolves #769. 2015-07-07 13:31:17 +02:00
Griatch
45e0785c8e Made a change to the cmdset comparison algorithm to make sure all commands are compared both by alias and key by use of a set-intersection operation. Before one side of the comparison used key and the other used key+aliases, which led to inconsistent results in some situations, especially when combining system commands with aliases. 2015-06-28 17:58:42 +02:00
Griatch
8ac424c216 Made multi-command-match display on multiple lines 2015-06-20 23:48:09 +02:00
Jonathan Piacenti
71389fd6fe Slight wording tweak. 2015-06-20 16:34:38 -05:00
Jonathan Piacenti
27500b9762 Better handling of command ambiguity. 2015-06-20 16:31:59 -05:00
Jonathan Piacenti
462b73b626 Rename display_name and improve docstrings. 2015-06-20 16:31:36 -05:00
Jonathan Piacenti
1822b01086 Add display_name and disambiguation_tag for dynamic naming. 2015-06-20 15:42:39 -05:00
Jonathan Piacenti
a5887d23e2 Make command ambiguity handler pluggable. 2015-06-20 13:18:50 -05:00
Griatch
561b051734 Made the cmdset flags no_exits, no_objs and no_channels pass-through the cmdset merge unless overruled by higher-prio sets' flags. Resolves #760. 2015-06-20 13:15:43 +02:00
Griatch
7f63ca6a76 Made error reporting from cmdsets a little more verbose. 2015-06-20 13:11:50 +02:00
Griatch
91b84213dd Made the string set convertion message a little clearer. Also set up the template to add the protototype dir from the onset. 2015-06-13 16:02:59 +02:00
Griatch
4d69e80787 Made lock command warn for using the wrong input form. Strip extraneous quotes from lock strings to avoid strange issue with escaped quotes from the command system. Resolves #758. 2015-06-13 00:08:12 +02:00
Griatch
f00f917e41 Fixed an issue with the lineeditor's quit yes/no question and made a custom yes/no solution instead of relying on the menusystem-based one in contrib. Resolves #757. 2015-06-12 23:17:32 +02:00
Griatch
7f8d421039 Fixed a bug and cleaned up the nick command. Resolves #756. 2015-06-09 14:34:27 +02:00
Griatch
9c677362e7 Fixed a typo for the command. Resolves #755. 2015-06-03 23:10:41 +02:00
Griatch
8e134af019 API change: Added no_superuser_bypass kwarg to obj.access, channel.access and player.access methods, to make the call consistent with the full lockhandler.check call. This allows the cmdhandler to use access() to check the 'call' locktype and thus make it available for overloading if so desired. Resolves #752. 2015-06-01 20:32:52 +02:00
Griatch
ef1e336339 Added a missing update to the database store of cmdsethandler. Resolves #751. 2015-06-01 20:02:53 +02:00