Commit graph

123 commits

Author SHA1 Message Date
Greg Taylor
531fbbacaa Fixing @open to be a bit more robust. Also handle exit name matching a lot more gracefully. 2007-05-18 15:20:24 +00:00
Greg Taylor
f6311dd41e Gah, one of these days I'll remember to completely fix both sides of things. No longer showing object's dbref on disconnect either. 2007-05-18 14:25:31 +00:00
Greg Taylor
9e5c297faa Don't return the ansi-fied version of the Object's name on its __str__() method as this is used in the admin interface and makes nasty looking garbage appear. 2007-05-18 14:07:57 +00:00
Greg Taylor
756ac8dfe1 More case-sensitivity stuff. Also remove player's dbref from first connection welcome message. 2007-05-18 13:44:21 +00:00
Greg Taylor
9221f889e3 Attribute names are no longer case-sensitive, as per MUX/MUSH. Also added LAST and LASTSITE to the protected attribute list. 2007-05-18 13:39:57 +00:00
Greg Taylor
2a46879ad2 Set a the player's LAST and LASTSITE attributes on connect as per MUX. 2007-05-18 13:36:39 +00:00
Greg Taylor
c067154cd4 Quick fix for channel list retrival. 2007-05-16 20:04:03 +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
17bbc4c3b3 Crash fix for what might be timing out sessions at the login prompt. 2007-05-16 18:25:44 +00:00
Greg Taylor
974c20efc7 Sort command list via @list commands. 2007-05-16 18:22:49 +00:00
Greg Taylor
5e0cb06221 Use cPickle instead of pickle for a small performance boost. 2007-05-15 17:30:45 +00:00
Greg Taylor
c7452e5a88 Finished up addcom/delcom. Added comlist. Fixed @list commands (still needs to sort by command name eventually). 2007-05-15 17:28:23 +00:00
Greg Taylor
e1f4c2e0da @cdestroy now implemented as per MUX. 2007-05-15 14:30:52 +00:00
Greg Taylor
725b1b2ac0 Adding a check to prevent duplicate channel names. 2007-05-15 14:18:56 +00:00
Greg Taylor
463197470e Feexed. 2007-05-11 15:43:55 +00:00
Greg Taylor
44701530dc Indenting fixes, still need to finish on commands_comsys, will pick it up later unless someone beats me to it. 2007-05-11 15:43:06 +00:00
Greg Taylor
65df59ff53 Moving @ccreate from commands_privileged to commands_comsys. Still need to add duplicate name checking. 2007-05-11 15:25:15 +00:00
Greg Taylor
ac32ab05c1 Finally caved in and created a command table. It's just going to get too messy with @-commands doing straight module lookups, plus the dict is probably a little faster. Feel free to start moving non-privved @-commands to commands_general and vice-versa since we now have the ability to do so. 2007-05-11 15:23:27 +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
32fa9e419a Committing the first draft of the comm channel and channel message classes. 2007-05-08 15:06:48 +00:00
Michael King
86e9a8292c * added skeletons for commands_comsys.py (has all of the MUX2 commands I
* could remember) and functions_comsys.py (has a couple of ideas for
* useful functions).
2007-05-04 18:02:49 +00:00
Michael King
e8674f1848 * Created INSTALL; moved initial installation instructions from README
* to INSTALL
2007-05-04 16:58:56 +00:00
Greg Taylor
cd70495f47 Was looking for an excuse to nab revision 100 :) Updated some stuff to reflect our new Google project/code pages. 2007-04-30 20:02:11 +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
81b1797144 Finished moving error trapping to cmdhandler.py. No need to do any exception handling on a per-command basis anymore. 2007-04-30 14:33:22 +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
ec4ab1e913 Never mind, no dice. 2007-04-26 20:33:53 +00:00
Greg Taylor
1435c06633 not sure if this'll work, we'll see. 2007-04-26 20:33:20 +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
a73a3523af Unintentionally committed a change to startup.sh, reversing. 2007-04-26 19:33:15 +00:00
Greg Taylor
c54f9f15e4 Renaming the default database file to evennia.db3 instead of evennia.sql, which is often used to signify text-based SQL dumps. Remember to re-name your database file and adjust your settings.py accordingly if you want to follow suite. Existing installs should theoretically be unaffected. 2007-04-26 19:32:26 +00:00
Greg Taylor
22bccd294f Minor update. 2007-04-26 02:19:49 +00:00
Greg Taylor
192ef521a2 Adding a session validity check in hopes of eventually expiring timed out connections. 2007-04-25 20:11:29 +00:00
Greg Taylor
0fc89247aa No longer need to distribute a database file. Each user will run their syncdb script and start with a clean slate. Updated installation instructions in README. 2007-04-25 19:39:15 +00:00
Greg Taylor
eda1753740 Move the server log to a 'logs' directory so as not to add even more clutter to server root. 2007-04-25 15:17:08 +00:00
Greg Taylor
b63f69eed0 New startup.sh file with configurable start modes. Eventually we'll do this via command line arguments, but for now it'll do. 2007-04-25 15:14:45 +00:00
Greg Taylor
3292405fcb Adding initial data via Django's syncdb facility. We will no longer distribute a SQLite DB in the near future in favor of this cross-platform alternative. Also in this commit is a crash fix for @dig with SQLite. 2007-04-25 14:47:33 +00:00
Greg Taylor
26a354204c Movin the TODO list to the google code group page. 2007-04-23 15:57:34 +00:00
Greg Taylor
02126b2434 Finished logging in with email address instead of username, forgot to yank this from the TODO list. 2007-04-23 15:37:48 +00:00