public function onNameReply(Event $event)
    {
        $msg = $event->getMessage();
        $chan = $msg['params'][2];
        $names = explode(' ', $msg['params'][3]);

        foreach ($names as $nick) {
            $mode = self::REGULAR;
            $prefix = $nick[0];

            if (isset(self::$modesPrefix[$prefix])) {
                $mode |= self::$modesNum[self::$modesPrefix[$prefix]];
                $nick = substr($nick, 1);
            }

            $this->storage->setUserMode($nick, $chan, $mode);
        }
    }