Commit graph

29 commits

Author SHA1 Message Date
Griatch
5590ee2258 Rename all instances of Player->Account. 2017-07-07 23:47:21 +02:00
Griatch
0ff1718437 Resolve django 1.11 migration errors. 2017-06-17 22:15:00 +02:00
Tehom
27c72d7899 Decided to remove setting because it seemed unnecessary when this was the purported default behavior anyway. It makes sense that if they want to send to offline, they'd override the option to be True in their channel typeclasses. At least that's my thinking, maybe I'm off base. Remove docstr line that says online arg is not currently used. 2017-05-20 23:33:39 -04:00
Tehom
f9c369f869 Add method to subscription handler to check online members, and put check in Channel typeclass for using this based on settings option. 2017-05-20 23:18:26 -04:00
Griatch
f9e7b01f57 Add **kwargs options to at_* hooks to all typeclasses, for greater flexibility for users. Resolves #1276. 2017-04-20 20:58:35 +02:00
BlauFeuer
f857a43f4b Markup update, docstring and whitespace fixes 2017-02-19 09:46:43 +01:00
Griatch
02a4ac5231 Fix bug in latest push. 2017-02-04 16:49:29 +01: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
74eebfed6d Refactor code to remove alerts as per lgtm and #1176. 2017-01-29 19:02:00 +01:00
Griatch
381e91b822 Made channel_prefix honor the emit keyword. Also corrected docstrings of message_transform to correctly note a Msg object is needed instead of a string. 2016-11-27 12:08:23 +01:00
Griatch
44e4ff4c1d Change to use the subscriptionhandler in distribute_message to support both players and objects subscribing to channels. 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
Griatch
056fa5f3d2 Removed superfluous import. 2016-05-22 20:45:42 +02:00
Griatch
fd50eaddba Fixed an error in channel.msg. Made sure to return a deferred from tail_log_file as its documentation suggests it should. 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
8448b513e1 Converted msg-arguments to options 2016-05-22 20:45:06 +02:00
Ahmed Charles
8a66fc40a9 Use with_metaclass from future.utils for python3 compat. 2015-11-01 15:11:12 +01:00
Russell Jones
06c3dc0ed3 Run "futurize -1 -w -n ." 2015-10-01 20:00:28 +01:00
Griatch
70762fb2be Updated menu_login contrib to changes in default channel settings. Also made them aware of multisession modes. Resolves #754. 2015-06-03 23:08:10 +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
e37079aa5b Converted the comm system folder to use Google style doc strings, as per #709. 2015-05-16 11:04:30 +02:00
Griatch
e77d86a8f7 Moved default class import markers to base model. 2015-03-14 23:14:47 +01:00
Griatch
94778f1c44 Run migrations! Made Channel model also accept ObjectDB subscriptions. 2015-03-12 20:28:17 +01:00
Griatch
d752106906 Made typeclass loading a little more forgiving, adding a multitude of try-levels to fall back to in case of errors. Default is now to fallback to first settings-set default, then to the library default and only as a last resort fall back to the model. Every fallback step is logged. This should make the missing-hook error of #698 go away and report missing typeclasses in a better way. 2015-03-11 00:41:06 +01:00
Griatch
515ce71d65 Reworked Evennia now passes the unit tests 2015-01-09 00:10:18 +01:00
Griatch
ab052b8301 Fixed bugs, made server start. Still cannot reload. 2015-01-08 19:56:54 +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
Renamed from lib/comms/comms.py (Browse further)