From 12172f08d75773911be12e2c8a265fedcc7dfe1b Mon Sep 17 00:00:00 2001 From: Miguel Dantas Date: Fri, 23 Aug 2019 23:44:19 +0100 Subject: [PATCH] [DirectMessage] Fixed use of incorrect type which prevented posting notices with only one word --- plugins/DirectMessage/DirectMessagePlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/DirectMessage/DirectMessagePlugin.php b/plugins/DirectMessage/DirectMessagePlugin.php index 8febfa586b..e66785f20c 100644 --- a/plugins/DirectMessage/DirectMessagePlugin.php +++ b/plugins/DirectMessage/DirectMessagePlugin.php @@ -100,7 +100,7 @@ class DirectMessagePlugin extends Plugin * @param Command|bool &$result The resulting command object to be run. * @return bool hook value */ - public function onStartInterpretCommand(string $cmd, string $arg, User $user, &$result) : bool + public function onStartInterpretCommand(string $cmd, ?string $arg, User $user, &$result) : bool { $dm_cmds = ['d', 'dm'];