Commit graph

3384 commits

Author SHA1 Message Date
Tehom
fcc8a7d3c2 Added in missing whitespace that made the unit test fail. 2016-10-20 08:08:55 +02:00
Tehom
c32920999b Fixed missing variable in formatting of disconnect string in delcom, made display of @channels more legible and display when someone is Muted rather than not subscribed. Refactored the 'who' list for channels to now be a property of the channel that returns a string of all the subscribers separated by commas, with those who are actively listening (not muted) in bold, and made both '@cwho' and 'allcom who' call to it. 2016-10-20 08:08:55 +02:00
Tehom
951cd60a6d Okay, next try! I added 'on' and 'off' as arguments for the base channel command in channelhandler which allows you to unmute or mute the channel respectively, and added the mute and unmute methods to ChannelDB. distribute_message now checks for a subscriber being muted before passing along the message. Reverted the changes to the channel cmdset. Added the 'all' switch to delcom to allow for the deletion of aliases, otherwise it keeps the aliases intact for when they next join the channel. 2016-10-20 08:08:55 +02:00
Tehom
441b081e55 allow for channel commands without a current subscription, so that players can use channelcommands such as <channelname>/history 2016-10-20 08:08:55 +02:00
Tehom
024a476355 get tag from list returned by get_tag 2016-10-19 23:50:30 +02:00
Greg Taylor
654b32a0b3 Remove gamedir_client backwards compat shim.
You'll want to make sure to use egi_client instead. See egi_client/README.md
for instructions.
2016-10-18 20:57:56 -07:00
Greg Taylor
1781a5acda Add syntax hilighting in egi_client/README.md. 2016-10-18 20:57:00 -07:00
Griatch
8561e3de23 Cleaned up the menu_system.py contrib docstring a little. 2016-10-18 23:32:32 +02:00
Tehom
d4ee0e487a Added missing import for subscriptionhandler.remove() 2016-10-18 23:10:27 +02:00
Griatch
2d02c06a11 Add clarification to nick command docstring. 2016-10-17 22:10:11 +02:00
Griatch
6e3fa4aea2 Fix nick deletion by index. Resolves #1099. 2016-10-17 22:09:45 +02:00
Griatch
cd9c11f6a8 Fix edge cases in channelhandler and make unittests work. 2016-10-16 19:04:05 +02:00
Griatch
e39e1bdd45 Fix some regressions in the tutorial world. 2016-10-16 01:07:46 +02:00
Griatch
1d6873eef4 Fix caching error in new cmdset merge regime. Removed debug messages. 2016-10-15 23:22:33 +02:00
Griatch
a61a33e87d Refactor ChannelHandler. Fix issues with new cmdset merge procedures. 2016-10-15 22:48:38 +02:00
Griatch
196f1ad270 Change so typeclass equality is not only based on dbid but also on model. 2016-10-15 22:48:38 +02:00
Griatch
1981f8073f Lots of debug messages. 2016-10-15 22:48:38 +02:00
Griatch
cc76de348e Changed how duplicates is passed down the cmdset merge stack. 2016-10-15 22:48:38 +02:00
Griatch
edacd58eab Refactor get_and_merge_cmdsets to merge all cmdsets in one place rather than sub-merging them separately on each object first. See #1087. Also changes the names of the auto-added _exitset to ExitCmdSet and _channelset to ChannelCmdSet. Allow Channel cmdsets to also be identified on Objects. 2016-10-15 22:48:38 +02:00
Griatch
bac6c7f234 Continue adding unit tests to cmdhandler.get_and_merge_cmdsets function. Not finished yet, unclear how to propagate the options correctly. 2016-10-15 22:48:38 +02:00
Griatch
40e1c67f88 Change how cmdset options are merged by priority - this is now a straight priority order, where the option from the higher prio goes. Also add unit tests for cmdset mergers. 2016-10-15 22:48:38 +02:00
Griatch
300758b2dd Testing a new variation on cmdset merging, as per #1087. 2016-10-15 22:48:37 +02:00
Griatch
c7b689c1d8 Fix unittests and a lingering error in the solution to #1073. 2016-10-13 22:10:49 +02:00
Griatch
f59c9fd573 Fix bugs in alias-searching for objects. Resolves #1048. 2016-10-13 21:53:54 +02:00
Griatch
fb96b44324 Fix searching from a ContribRPObject. Resolves #1073. 2016-10-13 20:34:09 +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
a467d2984e Make TestCommand unittest base handle non-text outputfuncs from msg() calls. This is done by primarily using text, and if that is None, by converting the entirety of the alternative kwargs to strings. Implements #1091." 2016-10-13 20:13:13 +02:00
Griatch
95aa505b45 Add the evennia.utils.gamtime.reset_gametime() function, for restarting gametime from a later time than the server creation time. 2016-10-12 20:27:21 +02:00
Griatch
070e4924e9 Refactored the talking_npc a little, made the contributed changes work. 2016-10-11 22:12:18 +02:00
grungies1138
849f4bde71 Update talking_npc.py 2016-10-11 22:12:18 +02:00
grungies1138
eb4be28d88 Update talking_npc.py
updating talking_npc to use the current Menu system
2016-10-11 22:12:18 +02:00
Tehom
3ff9eac86c Have lockshandler fail gracefully rather than cause a server crash 2016-10-07 10:06:49 +02:00
Tehom
ae5848dd0b Overload the 'last', 'first', and 'count' queryset methods to work for the TypedObjectManager. 2016-10-07 10:04:20 +02:00
hatetank
23e658acf9 minor typos updated 2016-10-07 10:01:26 +02:00
Griatch
e2e6f35d11 Let EvMenu accept arbitrary kwargs as initialization properties (available through caller.ndb._menutree). 2016-10-04 18:16:00 +02:00
Griatch
40a985c791 Make some docstring updates. 2016-10-02 21:59:19 +02:00
Griatch
00c64b10bb Make sure msg(text=None) means that text should not be used (None must be converted to a string to send). Resolves #1077. 2016-10-02 21:51:15 +02:00
Griatch
2b35140fe3 Implement a more throughough cache-flush mechanism. This makes sure to flush foreignkey cache relations for objects not affected by flushing (normally objects with an NAttribute stored in them). Without ForeignKey flushing, the location of such objects would remain cached and drift out of sync, leading to content caches in turn desyncing. Resolves #1064. 2016-10-02 20:52:05 +02:00
Griatch
15025c0586 Added at_idmapper_flush to allow objects more control of their flush characteristics. 2016-10-02 20:52:05 +02:00
Griatch
cd616caf29 Debug tests for trying to catch the flushmem bug #1064. 2016-10-02 20:52:05 +02:00
Griatch
589d6737db Make channelhandler easier to import at different stages without a circular import problem. 2016-10-02 15:54:57 +02:00
Griatch
73bb293156 Fix a tracebac in page due to calling Msg.date_sent instead of Msg.date_created. 2016-10-02 14:15:18 +02:00
Trent Robbins
91874f5339 Removed reference to target after target.at_desc. This allows the target to delete itself in response to being looked at without throwing an error. 2016-10-02 13:40:28 +02:00
Tehom
c5c3a9ef0a Resolves player confusion with the EvMore display, making it more clear that 'n/next' is used for continuing, makes 'look' repeat the display, and notifies them when they exit. 2016-10-02 13:36:29 +02:00
Griatch
d407de4dc3 Refactoring of the EvMore to use the new justifier functionality and also properly deal with very long single lines. 2016-10-02 13:11:49 +02:00
Griatch
4e9d070b64 Save the cmdset stack before entering batchcommands in order to properly re-establiish the stack after batch runs instead of simply clearing it. Resolves #1085. 2016-10-01 15:41:10 +02:00
Trent Robbins
eb4618625d Added support for single quotes, escaped hyphen and converted regex string to raw. 2016-10-01 13:55:09 +02:00
Trent Robbins
89c3a1f846 Removed single quote parsing from player 'connect' and 'create' command parsers. 2016-10-01 13:55:09 +02:00
Tehom
cd04ea4c62 @color didn't escape the | symbol after it became used as an ansi control character, which messed up the formatting of the help file 2016-10-01 13:52:27 +02:00
Dan Feeney
7f63393cb7 modified msg_contents to allow objects without get_display_name to be included in mapping 2016-10-01 13:50:11 +02:00