Griatch
c2c7fa311a
Format code with black. Add makefile to run fmt/tests
2019-09-28 18:18:11 +02:00
Greg Taylor
5e1a672fc2
Remove builtins imports
...
This module is not intended to be used directly in most cases, per:
https://docs.python.org/3/library/builtins.html
None of our usages warrant the explicit import. We also avoid some
confusion as folks dig to see what we are doing to require
importing builtins directly.
2019-09-15 20:29:59 -07:00
Griatch
72f4fedcbe
Merge with develop and fix merge conflicts
2018-10-01 20:58:16 +02:00
arumford
96ebe8d0f3
typo in docstring.
2018-03-03 11:01:31 +01:00
Ryan Stein
6fa280b9fd
Run 2to3.
2017-10-29 13:40:30 -04:00
Griatch
92df3ce5ae
Structure handlers to allow .get() to return lists
...
See #1154 . In the end I didn't modify the Attributehandler and
TagHandler like this, instead I added the `return_list` argument
for cases when one wants a guaranteed return.
2017-08-27 14:56:05 +02:00
Griatch
b278337172
Make PEP8 cleanup of line spaces and character distances as well as indents
2017-08-19 23:16:36 +02:00
Griatch
e56b0024c4
Merge branch 'master' into devel
2017-07-13 22:54:53 +02:00
Griatch
5590ee2258
Rename all instances of Player->Account.
2017-07-07 23:47:21 +02:00
Vincent Le Goff
7fb31d3160
Let ChannelCommand.arg_regex override the value set by the CHANNEL_HANDLER
2017-07-02 16:23:49 -07:00
Griatch
628dd268f9
Make the at_channel_create method automatically add a new channel to the channelhandler.
2017-02-04 16:42:08 +01:00
Griatch
c6d9c0619e
Refactor code for readability and compatibility.
2017-01-27 00:19:27 +01: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
Griatch
a61a33e87d
Refactor ChannelHandler. Fix issues with new cmdset merge procedures.
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
589d6737db
Make channelhandler easier to import at different stages without a circular import problem.
2016-10-02 15:54:57 +02:00
Griatch
528401ec99
Change the channel cmdset prio to 101, same as Exits as per #1059 .
2016-09-13 09:06:19 +02:00
Griatch
e0d4f6a6c3
Fixed a bug in channelhandler if the channel had no desc.
2016-06-04 19:41:17 +02:00
Griatch
48bea2a7cc
Some more cleanup of the ChannelHandler
2016-05-22 20:49:46 +02:00
Griatch
2f655abf1a
Added the possibility to overload the dynamically created ChannelCommand. Implements #887 .
2016-05-22 20:49:46 +02:00
Griatch
4a58fcb9f1
Made the tail-viewing of a log-file threaded for maximum asynchronicity.
2016-05-22 20:45:42 +02:00
Griatch
5583a8d758
Made channels log to a log file by default. Added a default /history switch to the channel commands (for viewing past entries) and implemented a very efficient tail_log_file function to scan the log and display it.
2016-05-22 20:45:42 +02:00
Griatch
d00ff9ae32
Added dynamic formatting to comm channel, as inspired by the way done in Arxmush.
2016-05-22 20:45:42 +02:00
Griatch
9522a94ece
Added a missing i18n import to channelhandler
2016-03-05 22:00:25 +01:00
Kai Huang
fd2f762730
Internationalization for comms and objects.
2016-02-08 18:26:55 +01:00
Ahmed Charles
11b61fe335
Import python3 compatible object.
2015-11-02 00:19:04 +01: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
Griatch
e37079aa5b
Converted the comm system folder to use Google style doc strings, as per #709 .
2015-05-16 11:04:30 +02:00
Griatch
b015f4802a
Added better docstrings to subpackages and cleaned out some places which were unclear.
2015-02-23 17:46:42 +01:00
Griatch
d97bbb309b
Added captalized names for singleton handlers in the main package api, like TICKER_HANDLER and OOB_HANDLER rather than tickerhandler and oobhandler.
2015-02-14 22:01:53 +01:00
Griatch
ad3f19896c
Changed all src/ and ev references to evennia
2015-01-07 15:36:32 +01:00
Griatch
c7325a5032
Further reworking, naming the library folder 'evennia' instead of lib or src.
2015-01-07 13:36:57 +01:00