| @@ 212-216 (lines=5) @@ | ||
| 209 | private function processLast(Account $account, array $words) |
|
| 210 | { |
|
| 211 | if (array_key_exists(1, $words)) { |
|
| 212 | if (null !== $user = $this->userRepo->findUserByLogin($words[1])) { |
|
| 213 | $this->sendUserEvents($account, $user); |
|
| 214 | } else { |
|
| 215 | $this->sendError($account, 'User not found'); |
|
| 216 | } |
|
| 217 | } else { |
|
| 218 | $this->sendGlobalEvents($account); |
|
| 219 | } |
|
| @@ 225-229 (lines=5) @@ | ||
| 222 | private function processSub(Account $account, array $words) |
|
| 223 | { |
|
| 224 | if (array_key_exists(1, $words)) { |
|
| 225 | if (null !== $user = $this->userRepo->findUserByLogin($words[1])) { |
|
| 226 | $this->sendUserSubscribers($account, $user); |
|
| 227 | } else { |
|
| 228 | $this->sendError($account, 'User not found'); |
|
| 229 | } |
|
| 230 | } else { |
|
| 231 | if ($user = $account->getUser()) { |
|
| 232 | $this->sendUserSubscribers($account, $user); |
|