[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 Cordeiro
parent f6fd025be2
commit 10b3b343dd

View File

@ -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'];