Commit graph

21 commits

Author SHA1 Message Date
Greg Taylor
b6c869b076 Abstraction of generic player object searches, as should've been case from the beginning. Bad me for letting this get out of hand! In any case, this eliminated a lot of code and makes pretty much all of the commands that interact with objects a lot neater, readable, and consistent. 2007-05-24 14:22:11 +00:00
Greg Taylor
39b640e948 Add the ability to examine obj/attr with wildcards. 2007-05-24 02:58:59 +00:00
Greg Taylor
107bd6d71a Implemented channel communication. You may now addcom/delcom and talk over channels. See @clist for master channel list, and comlist for your personal list. Still tons of work and cleanup to do, but it's in functional in its simplest form. 2007-05-16 20:01:54 +00:00
Greg Taylor
2fc06adcfa Adding the first bit of permissions checking as an example. See cmd_who and the Object class's user_has_perm method for examples. We'll need to start fleshing this stuff out before adding many more new commands. For existing games, remove your auth_permissions table and re-sync your DB. 2007-05-09 15:53:53 +00:00
Greg Taylor
f1dd985294 Added idle timeout code to help combat the screwed up session situation. Some admins would've wanted this eventually, but it'll help until I figure out how to close dead sessions that look like they're still alive. Added a new server config directive, idle_timeout. If the value is non-zero, the idle timeout is the respective number of seconds between commands. Also, the IDLE command will save you from idle timeouts but won't modify your publicly visible idle time. 2007-05-09 15:28:12 +00:00
Greg Taylor
a1bc2375ef Finish up single-character aliases for pose, say, and pose/nospace. 2007-04-30 19:49:30 +00:00
Greg Taylor
4f67efb70a Implemented page history, meaning you don't need to provide your victim's name/alias and the equal sign after the initial page. TODO: Allow paging multiple people at once, ala MUX. 2007-04-30 18:39:41 +00:00
Greg Taylor
c4597f41a1 WHO alignment fix. Whoops. 2007-04-30 18:19:06 +00:00
Greg Taylor
4fd5a20e2c Added a @reload command to reload most of the modules. This currently only seems to work for the stuff outside of the apps directory, and doesn't include the server, session_mgr, or events modules, as they have variables in them that we can't have reset. So basically, changes to the functions_ and commands_ modules can be applied with @reload, but little else. Hopefully this will improve with time. Also fixed a bug with @name'ing players but not updating their account's username to reflect it. 2007-04-30 17:51:55 +00:00
Greg Taylor
98e9175582 Addition of a player_search() function in functions_db. This first searches for alias matches (exact, no case-sensitivity). If it finds none, it does a normal local_and_global_search() limited by object type PLAYER. Also did some more code cleanup and commenting. 2007-04-30 14:21:48 +00:00
Greg Taylor
6d52103359 Fix paging to take multi-word victims. Also updated messages to match MUX2. 2007-04-30 13:29:36 +00:00
Michael King
cb05b23b5b * changed the message to be a tail slice of the eq_args instead of just the second element.
* changed the emit_to() on the target object to use join to turn the message into a string.
2007-04-29 20:52:19 +00:00
Michael King
26c6dd109a * Re-implemented page using @teleport's protocol. Still can't get spaces in names working out of the box, but I'm looking into squashing that. (tsal) 2007-04-29 13:58:58 +00:00
Michael King
6355ed2298 * Found all my stupid bugs, and remembered that django's Model#get() will raise an exception if it cannot find any matching objects. Used that to determine "no such user". 2007-04-28 14:53:13 +00:00
Michael King
21a03fc07c * After review of the codebase some more, discovered better methods for most of what I was trying to do.
* Before this change, it was no longer dumping the connection, but was always claiming that the target player was not online, when they were.
* Back to the drawing board on cmd_page for now.
2007-04-28 14:26:28 +00:00
Michael King
3054d1233f * Fixed interpolation statements to have tuples instead of a string 2007-04-28 13:44:33 +00:00
Michael King
d017ff0d39 * Added cmd_page. I think I'm running into SQLite problems, as when the command runs, it simply dumps the session.
I tried to test this on MySQL, but I can't get syncdb to work, either. (tsalaroth mking@arikel.net)
2007-04-26 23:35:37 +00:00
Greg Taylor
7012960a70 Remove get_ansiname() by condensing functionality into get_name(). Removed session debug statements I had in for testing. 2007-04-26 20:32:56 +00:00
Greg Taylor
9e587bd4e3 Important update: Fixed two crash bugs in attribute getting/setting. Less importantly, the money value shown in 'inventory' now pluralizes properly. 2007-04-23 15:22:40 +00:00
Greg Taylor
9335adc03a More command sanitizing checks, renamed startup script to startup.sh. 2007-04-03 20:15:54 +00:00
Greg Taylor
5421ab7f6e Re-organization. 2007-04-03 13:42:51 +00:00
Renamed from evennia/trunk/commands_general.py (Browse further)