[DirectMessage] Fixed use of incorrect type which prevented posting notices with only one word
This commit is contained in:
parent
f6fd025be2
commit
10b3b343dd
|
@ -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