Esempio n. 1
0
    public static void Unclaim(TwitchModule module, string user, [Group(1)] string cmd)
    {
        var result = module.UnclaimModule(user);

        // If UnclaimModule responds with a null message, someone tried to unclaim a module that no one has claimed but they were waiting to claim.
        // It's a valid command and they were removed from the queue but no message is sent.
        if (result.Second != null)
        {
            IRCConnection.SendMessage(result.Second);
        }

        if (result.First && cmd.Contains("v"))
        {
            TwitchGame.ModuleCameras?.UnviewModule(module);
        }
    }