[DirectMessage] Fixed use of incorrect type which prevented posting notices with only one word
This commit is contained in:
parent
84ba14426c
commit
12172f08d7
@ -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'];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user