| @@ 198-202 (lines=5) @@ | ||
| 195 | private function processLast(Account $account, array $words) |
|
| 196 | { |
|
| 197 | if (array_key_exists(1, $words)) { |
|
| 198 | if (null !== $user = $this->userRepo->findUserByLogin($words[1])) { |
|
| 199 | $this->sendUserEvents($account, $user); |
|
| 200 | } else { |
|
| 201 | $this->sendError($account, 'User not found'); |
|
| 202 | } |
|
| 203 | } else { |
|
| 204 | $this->sendGlobalEvents($account); |
|
| 205 | } |
|
| @@ 211-215 (lines=5) @@ | ||
| 208 | private function processSub(Account $account, array $words) |
|
| 209 | { |
|
| 210 | if (array_key_exists(1, $words)) { |
|
| 211 | if (null !== $user = $this->userRepo->findUserByLogin($words[1])) { |
|
| 212 | $this->sendUserSubscribers($account, $user); |
|
| 213 | } else { |
|
| 214 | $this->sendError($account, 'User not found'); |
|
| 215 | } |
|
| 216 | } else { |
|
| 217 | if ($user = $account->getUser()) { |
|
| 218 | $this->sendUserSubscribers($account, $user); |
|