Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

Commit

Permalink
Fix crashing bugs
Browse files Browse the repository at this point in the history
Signed-off-by: Yoshi2889 <[email protected]>
  • Loading branch information
NanoSector committed Aug 3, 2017
1 parent 21055ed commit 56eeb7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Moderation.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ public function modeCommand(Channel $source, User $user, $args, ComponentContain
$target = array_shift($args);

Queue::fromContainer($container)
->mode($source->getName(), $modes, $target);
->mode($source->getName(), $modes, [$target]);
}

/**
Expand All @@ -297,7 +297,7 @@ protected function banUser(Channel $source, User $userObj, ComponentContainer $c
if ($offset != 0)
{
$args = [$source, $ban, $container];
$task = new CallbackTask([$this, 'removeBan'], $offset, $args);
$task = new CallbackTask([$this, 'removeBan'], (int) $offset, $args);
$this->taskController->add($task);
}

Expand Down

0 comments on commit 56eeb7a

Please sign in to comment.