Commit graph

87 commits

Author SHA1 Message Date
Griatch
ca39276001 Ran black on master branch 2019-12-16 20:33:38 +01:00
Griatch
c2c7fa311a Format code with black. Add makefile to run fmt/tests 2019-09-28 18:18:11 +02:00
Alessandro Ogier
8bd85409ff do not duplicate whispers 2019-08-21 22:50:35 +02:00
Griatch
aa6b403cd1 Remove @ from default commands. Update docstrings 2019-06-17 22:04:59 +02:00
Andrew Bastien
060a48c4aa Fix some oversights on evtable.self stupidity. 2019-04-09 22:38:11 -04:00
Andrew Bastien
c3e2522da9 Finished presentation-grade version of @style. 2019-04-09 22:35:25 -04:00
Griatch
b45cdcf8c2 Fix nix traceback. Resolves #1761. 2019-01-04 19:51:26 +01:00
Griatch
1923689040 Fix except-finally section that swallowed command unittest error message. Resolves #1629. 2018-08-20 20:21:22 +02:00
Brenden Tuck
ab1bd6415d Merge branch 'develop' into master 2018-03-18 20:16:06 -04:00
friarzen
f95f66633d Example of how to tag msg() with a type 2018-03-17 21:50:11 +00:00
BlauFeuer
64f57da1e4 Add multi-delimiter split to CmdGive 2018-03-05 20:16:52 -05:00
BlauFeuer
3083d1c082 class vars options, split renamed
switch_options, rhs_split
2018-03-05 14:52:29 -05:00
BlauFeuer
111b1c5136 Merge branch 'develop' into develop-muxcommand 2018-03-05 13:36:39 -05:00
Griatch
38a81486e2 Merge branch 'master' into develop 2018-03-03 18:50:43 +01:00
Griatch
b704363cf7 Allow nick command to list individual nicks 2018-03-03 18:32:39 +01:00
Griatch
3e5f2ef68a Clarify nick-deletion mechanism 2018-03-03 11:01:31 +01:00
Griatch
11965a1c34 Store all nicks on caller (don't store 'account-nicks' on caller.account) 2018-03-03 11:01:31 +01:00
Griatch
dbb5373523 Allow nick command to list individual nicks 2018-03-03 11:01:31 +01:00
Griatch
223648782f Allow nick command to list individual nicks 2018-03-03 10:12:34 +01:00
BlauFeuer
4df5b28721 Adds class var options, split to CmdGive +
docstring edit, options and docstring edit to CmdNick.
2018-03-02 08:02:31 -05:00
Griatch
037932aae2 Merge pull request #1552 from BlauFeuer/develop-locate
`@locate` alias of CmdFind shows location of find
2018-02-22 19:13:11 +01:00
Griatch
4376058ee9 Merge branch 'master' into develop 2018-01-27 14:20:13 +01:00
BlauFeuer
96508d8a25 Typo fix in CmdWhisper help docstring 2018-01-15 13:53:19 -05:00
Griatch
728f933d6d Update nicks to properly handle account-nicks in e.g. pages 2018-01-09 20:38:06 +01:00
Griatch
c7cfca2785 Refactoring/cleanup of deletion/managing of nicks in nick Command 2018-01-09 19:39:49 +01:00
Griatch
05c6813dd9 Fix error in nick deletion parsing 2018-01-09 18:51:07 +01:00
Griatch
0ecf99ab4b Correct nick parsing 2018-01-09 18:22:42 +01:00
Griatch
dec5dbbf3a Add escaping = as \= in nicks, add colors. Resolves #1551. 2018-01-09 18:09:56 +01:00
Griatch
217bc27826 Make alias command handle categories, remove 'alias' alias from nick cmd 2018-01-07 16:20:56 +01:00
Griatch
d2e8badf18 Stop #dbref searches for unprivileged. Other minor fixes. Resolves #1251. 2017-10-01 16:56:20 +02:00
Griatch
a8603975a1 Merge back fixes into master 2017-10-01 16:55:51 +02:00
FlutterSprite
dd8e136cfc Added at_before hooks to CmdGet, CmdGive, CmdDrop
Added in references to at_before hooks for the get, give, and drop commands. If these hooks return 'False' or 'None', the action is canceled.
2017-10-01 10:20:04 +02:00
Griatch
da58d827cf Cleanup of at_say hook, pass outputfunc, support multiple receivers.
This is an API change since at_say(recever=...) is now
at_say(receivers=...). Since this was originally committed for devel, I
merge this into master. This resolves #1432 and #1433 and reimplements the changes by #1419 without the
addition of a new type kwarg.
2017-09-30 14:11:14 +02:00
Griatch
44f01c48da Remove limit on whispering to oneself.
Resolves #1416.
2017-09-03 10:31:45 +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
c43059c75f Rework at_before_say/at_say to handle whispers and using kwargs. 2017-07-21 12:17:47 +02:00
Griatch
8600e8c546 Fix merge conflicts with say-branch 2017-07-21 11:06:38 +02:00
Griatch
5590ee2258 Rename all instances of Player->Account. 2017-07-07 23:47:21 +02:00
Griatch
a648433db8 Merge conflicts against master, including cmdhandler support for direct cmdobject input together with prefix-ignore mechanism from devel. 2017-04-01 16:08:23 +02:00
Griatch
f6e230f1a6 Change text optional kwarg type name to lowercase to match all other communications variables. Expand msg_contents to handle a tuple. 2017-03-29 21:50:51 +02:00
CloudKeeper1
c12306ff72 Adjustments to argument capitalisation.
Adjustments to argument capitalisation.
2017-03-29 18:16:19 +02:00
CloudKeeper1
4bbba76155 msg_contents doesn't take the text keyword in arguments.
Adjusted code so it works now...
2017-03-29 18:16:19 +02:00
CloudKeeper1
344a724479 Changed option entry to msg output kwarg.
Griatch - "That way it can still be parsed by the protocol if so needed, but it is also be passed on so the client can do custom stuff with it if it can."
2017-03-29 18:16:19 +02:00
CloudKeeper1
375cd7cecb Changed kwarg to options entry
Due to the set up of sessionhandler.clean_senddata the information is more appropriately stored in options.
2017-03-29 18:16:19 +02:00
CloudKeeper1
6cfbec83f1 Inclusion of type kwarg for common communications
Including a type kwarg for the say, whisper and pose commands allows the receivers of those messages to treat them differently depending on type. IMO This is a wide enough concern that it goes beyond a game specific requirement.
2017-03-29 18:16:19 +02:00
Vincent Le Goff
a5b26df330 Create hooks for the whisper command 2017-03-28 12:07:17 -07:00
Vincent Le Goff
f11e92b2c0 Add more flexibility to the hooks on say 2017-03-28 11:23:32 -07:00
Xelaadryth
12e0e2e4fd Fixing typo of local variable 2017-03-27 22:19:07 +02:00
BlauFeuer
b0ac809229 CmdLook use_dbref by Builders perm group #1251
Only allow referencing targets to view by #dbid if viewer is in Builders permission group
2017-03-25 10:44:59 +01:00
BattleJenkins
96ba31f858 Implemented default object's at_give() hook
Calls a new hook on the default object, at_give(), which passes the giving and receiving objects as arguments.
2017-03-25 10:01:56 +01:00