[DirectMessage] Fixed use of incorrect type which prevented posting notices with only one word

This commit is contained in:
Miguel Dantas 2019-08-23 23:44:19 +01:00 committed by Diogo Peralta Cordeiro
parent 84ba14426c
commit 12172f08d7

View File

@ -100,7 +100,7 @@ class DirectMessagePlugin extends Plugin
* @param Command|bool &$result The resulting command object to be run. * @param Command|bool &$result The resulting command object to be run.
* @return bool hook value * @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']; $dm_cmds = ['d', 'dm'];